Be specific about OS Vendor support, and add additional EL 6 fixups

This commit is contained in:
Jason Rothstein 2020-11-29 21:49:46 -06:00
parent 92b5b71d15
commit 9e8e9c8cc6
2 changed files with 46 additions and 0 deletions

View File

@ -9,6 +9,14 @@
state: 'present'
- name: 'libselinux-python'
state: 'present'
- name: 'pyOpenSSL'
state: 'present'
- name: 'python-pyasn1'
state: 'present'
- name: 'python-urllib3'
state: 'present'
- name: 'python2-ndg_httpsclient'
state: 'present'
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
notify:

View File

@ -0,0 +1,38 @@
---
# tasks file for ensure_ansible_prereq
- name: 'package states'
ansible.builtin.package:
name: '{{ item.name }}'
state: '{{ item.state }}'
loop:
- name: 'acpid'
state: 'present'
- name: 'libselinux-python'
state: 'present'
- name: 'pyOpenSSL'
state: 'present'
- name: 'python-pyasn1'
state: 'present'
- name: 'python-urllib3'
state: 'present'
- name: 'python2-ndg_httpsclient'
state: 'present'
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
notify:
- 'ensure_ansible_prereq.package_facts'
- 'ensure_ansible_prereq.service_facts'
- name: 'service states'
ansible.builtin.service:
enabled: '{{ item.enabled }}'
name: '{{ item.name }}'
state: '{{ item.state }}'
loop:
- enabled: 'yes'
name: 'acpid'
state: 'started'
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
notify:
- 'ensure_ansible_prereq.package_facts'
- 'ensure_ansible_prereq.service_facts'