Initial commit

This commit is contained in:
2026-03-08 06:55:57 -04:00
commit 63099ecf0d
9 changed files with 338 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
- name: Stop mollyguard if active
ansible.builtin.script: scripts/stop_mollyguard
register: mg
- name: Determine if a reboot is necessary
ansible.builtin.command:
cmd: ~/bin/needs_reboot
register: needs_reboot
- name: Conditionally reboot
ansible.builtin.reboot:
when:
- inventory_hostname not in group['controller']
- mgc succeeded
- needs_reboot succeeded