Add system upgrade role
initial commit
This commit is contained in:
commit
1fe4c617db
7 changed files with 137 additions and 0 deletions
10
roles/system-upgrade/handlers/main.yml
Normal file
10
roles/system-upgrade/handlers/main.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
- name: reboot host
|
||||
reboot:
|
||||
msg: "Reboot initiated by Ansible"
|
||||
connect_timeout: 5
|
||||
reboot_timeout: 600
|
||||
pre_reboot_delay: 0
|
||||
post_reboot_delay: 30
|
||||
test_command: whoami
|
||||
become: true
|
||||
when: reboot_required_file.stat.exists
|
||||
Loading…
Add table
Add a link
Reference in a new issue