Why not using the "reboot" module which is done for that instead of
using shell module with some tricks ?
Regards,
JYL
Le 12/02/2020 à 19:30, Work-Hard a écrit :
*Playbook doesn't run completely stuck after "check if reboot
required". Please assist!*
*
*
*
Play-Book*
---
- hosts: ubuntu
*Playbook doesn't run completely stuck after "check if reboot required".
Please assist!*
*Play-Book*
---
- hosts: ubuntu
become: true
any_errors_fatal: true
serial: 1
max_fail_percentage: 0
vars:
ansible_user: ubuntu
tasks:
# do an "apt-get update", to ensure latest package