Compare commits
4 commits
c868adc1bd
...
6bb69cc080
Author | SHA1 | Date | |
---|---|---|---|
6bb69cc080 |
|||
1c729ade06 |
|||
249ff5f958 |
|||
cfcf3de49b |
3 changed files with 24 additions and 5 deletions
7
playbooks/connection_test.yaml
Normal file
7
playbooks/connection_test.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
- name: connection test
|
||||||
|
hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: debug
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: ansible_connection
|
15
playbooks/reboot_test.yaml
Normal file
15
playbooks/reboot_test.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
- 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,6 +1,3 @@
|
||||||
- name: reboot the system
|
- name: reboot the system
|
||||||
ansible.builtin.include_role:
|
become: true
|
||||||
role: reboot
|
ansible.builtin.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