Compare commits
2 commits
6bb69cc080
...
c868adc1bd
Author | SHA1 | Date | |
---|---|---|---|
c868adc1bd |
|||
2e9a9e0339 |
3 changed files with 5 additions and 24 deletions
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: connection test
|
|
||||||
hosts: all
|
|
||||||
tasks:
|
|
||||||
- name: debug
|
|
||||||
ansible.builtin.debug:
|
|
||||||
var: ansible_connection
|
|
|
@ -1,15 +0,0 @@
|
||||||
---
|
|
||||||
- name: reboot test
|
|
||||||
hosts: all
|
|
||||||
tasks:
|
|
||||||
- name: debug before
|
|
||||||
ansible.builtin.debug:
|
|
||||||
msg: before
|
|
||||||
|
|
||||||
- name: reboot
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: reboot
|
|
||||||
|
|
||||||
- name: debug after
|
|
||||||
ansible.builtin.debug:
|
|
||||||
msg: after
|
|
|
@ -1,3 +1,6 @@
|
||||||
- name: reboot the system
|
- name: reboot the system
|
||||||
become: true
|
ansible.builtin.include_role:
|
||||||
ansible.builtin.reboot:
|
role: reboot
|
||||||
|
vars:
|
||||||
|
# Simply don't reboot on local connections and rely on proper handling of /var/run/reboot-required.
|
||||||
|
reboot__local_handling: ignore
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue