Polish up those reboot playbooks
This commit is contained in:
parent
62b6a93b65
commit
004bc2a612
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: tags_pik8s-node,tags_pistorage,tags_pik8s-master
|
- hosts: device_roles_pik8s-node,device_roles_pik8s-storage,device_roles_pik8s-master
|
||||||
serial: 1
|
serial: 1
|
||||||
tasks:
|
tasks:
|
||||||
- name: check for reboot-required
|
- name: check for reboot-required
|
||||||
@ -9,5 +9,5 @@
|
|||||||
register: s
|
register: s
|
||||||
- name: reboot
|
- name: reboot
|
||||||
reboot: reboot_timeout=300
|
reboot: reboot_timeout=300
|
||||||
when: s.stat.exists or reboot_force
|
when: s.stat.exists
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -9,5 +9,5 @@
|
|||||||
register: s
|
register: s
|
||||||
- name: reboot
|
- name: reboot
|
||||||
reboot: reboot_timeout=300
|
reboot: reboot_timeout=300
|
||||||
when: s.stat.exists or reboot_force
|
when: s.stat.exists
|
||||||
become: yes
|
become: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user