Compare commits
5 Commits
ee00fe073a
...
e729e27b73
| Author | SHA1 | Date | |
|---|---|---|---|
| e729e27b73 | |||
|
|
421128b534 | ||
|
|
160a93d93f | ||
|
|
d23a23860c | ||
|
|
353deb039d |
@@ -5,11 +5,11 @@
|
|||||||
become_method: sudo
|
become_method: sudo
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Trigger system reboot
|
- name: Trigger reboot with a slight delay
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.shell: "sleep 15 && shutdown -r now"
|
||||||
msg: "Reboot initiated by Semaphore UI"
|
async: 1
|
||||||
connect_timeout: 5
|
poll: 0
|
||||||
reboot_timeout: 600
|
ignore_errors: true
|
||||||
pre_reboot_delay: 0
|
|
||||||
post_reboot_delay: 30
|
- name: Reboot command issues, exiting play
|
||||||
test_command: whoami
|
ansible.builtin.meta: end_host
|
||||||
|
|||||||
@@ -23,3 +23,4 @@
|
|||||||
- name: Debug Output (Optional)
|
- name: Debug Output (Optional)
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "{{ pivpn_diag.stdout_lines }}"
|
msg: "{{ pivpn_diag.stdout_lines }}"
|
||||||
|
|
||||||
Reference in New Issue
Block a user