reboot issues

30 views
Skip to first unread message

Rene Paquin

unread,
Jan 8, 2021, 2:45:40 PM1/8/21
to ansible...@googlegroups.com

I am testing a playbook to deploy updates then force a reboot on an Oracle Linux ver 8.3  The DNF updates run fine but when the system reboots it hangs.  The server is a vm running in a vmware 6.7 environment.  In order to bring the system back up I have to reset the vm from vcenter.  Not sure how to troubleshoot this.  The playbook is as follows: 

 

---

- name: Upgrade all packages

  hosts: all

  vars_files:

     - group_vars/ol8

 

  tasks:

  - name: dnf updates

    dnf:

      name: '*'

      state: latest

 

  - name: Reboot after updates are applied

    reboot:

 

 

...

 

Thanks,

 

********************************
Rene Paquin - Systems Administrator
Wilfrid Laurier University
Waterloo, Ontario
(519)884-0710 x3795
rpa...@wlu.ca

 

Rene Paquin

unread,
Jan 8, 2021, 3:07:49 PM1/8/21
to ansible...@googlegroups.com

Further to this…

 

I separated the tasks into two playbooks.  I run the update playbook and when complete I then run the reboot playbook.  The system still hangs.  After I reset the VM and it is back online I run the reboot playbook and it works fine.  So I assume there is something that needs to be done after the updates are completed?  Not sure.

 

Thanks,

 

Rene

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/YTXPR0101MB1295A80B4845F0CF8F71DDCAD8AE0%40YTXPR0101MB1295.CANPRD01.PROD.OUTLOOK.COM.

Emiliano Vazquez

unread,
Jan 11, 2021, 9:28:25 AM1/11/21
to ansible...@googlegroups.com
Hi René!

Take a look at this, use the system to tell you is reboot is required and then reboot. The system will tell you when this is needed, some times grub need run to update links to kernel


Maybe you can show the errors to see more about this failed reboot

Best regards.



Rene Paquin

unread,
Jan 11, 2021, 10:02:09 AM1/11/21
to ansible...@googlegroups.com

Thanks for the response but it turns out that it was an OS issue and not an ansible issue.

 

Rene

Reply all
Reply to author
Forward
0 new messages