Polish up those reboot playbooks

This commit is contained in:
Salt 2021-08-25 12:20:47 -05:00
parent 62b6a93b65
commit 004bc2a612
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ansible-playbook
# 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
tasks:
- name: check for reboot-required
@ -9,5 +9,5 @@
register: s
- name: reboot
reboot: reboot_timeout=300
when: s.stat.exists or reboot_force
when: s.stat.exists
become: yes

View File

@ -9,5 +9,5 @@
register: s
- name: reboot
reboot: reboot_timeout=300
when: s.stat.exists or reboot_force
when: s.stat.exists
become: yes