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

13
reboot_required.yml Normal file
View File

@@ -0,0 +1,13 @@
---
- name: reboot machine if required
# 'all' is okay here, because the fail task will force the user to specify a limit on the command line, using -l or --limit
hosts: 'all'
tasks:
- name: Force limit arg
include_role:
name: force_limitArg
- name: Reboot if required
include_role:
name: reboot_required