move stuff to roles

This commit is contained in:
eneller
2022-09-03 17:57:46 +02:00
parent 2049f2ab2a
commit f1177aaec9
11 changed files with 94 additions and 107 deletions

View File

View File

@@ -0,0 +1,11 @@
---
- name: Check if reboot is required
stat:
path: /var/run/reboot-required
register: reboot_required_file
- name: Reboot if required
tags: disruptive
become: true
reboot:
when: reboot_required_file.stat.exists == true