Handle OS requirements for Ansible

This commit is contained in:
2020-01-01 22:34:15 -06:00
commit b8e0041be5
13 changed files with 453 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
# tasks file for ensure_ansible_prereq
- name: 'package states'
package:
name: '{{ item.name }}'
state: '{{ item.state }}'
loop:
- { name: 'acpid', state: 'present' }
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
- name: 'service states'
service:
enabled: '{{ item.enabled }}'
name: '{{ item.name }}'
state: '{{ item.state }}'
loop:
- { enables: 'yes', name: 'acpid', state: 'started' }
loop_control:
label: '{{ item.name }} will be {{ item.state }}'