Initial ansible onboard

This commit is contained in:
2024-09-24 15:19:51 +02:00
parent 7366659355
commit f445996797
492 changed files with 2214589 additions and 0 deletions
@@ -0,0 +1,21 @@
---
- name: Reboot if required
tags:
- reboot
- ubuntu
when: reboot_ubuntu
block:
- name: Stat /var/run/reboot-required
ansible.builtin.stat:
path: /var/run/reboot-required
register: stat_reboot_required
- name: Notify reboot handler
become: true
ansible.builtin.setup: ~
notify:
- Reboot node
when:
- ansible_distribution == "Ubuntu"
- stat_reboot_required.stat.exists
...