Compare commits

..

4 commits

Author SHA1 Message Date
6bb69cc080
temp: reboot test playbook
Some checks failed
/ Ansible Lint (push) Failing after 1m52s
/ Ansible Lint (pull_request) Failing after 2m6s
2025-07-01 03:41:57 +02:00
1c729ade06
reboot(role): intro. reboot role, which handles local conns. gracefully 2025-07-01 03:41:57 +02:00
249ff5f958
temp: connection test 2025-07-01 03:41:57 +02:00
cfcf3de49b
wip: ansible pull
Some checks failed
/ Ansible Lint (push) Failing after 1m57s
2025-06-14 20:54:42 +02:00
3 changed files with 24 additions and 5 deletions

View file

@ -0,0 +1,7 @@
---
- name: connection test
hosts: all
tasks:
- name: debug
ansible.builtin.debug:
var: ansible_connection

View 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

View file

@ -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