move stuff to roles

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

No files matched your search

Whitespace-only changes.
+11
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