Compare commits
5 Commits
6271d240f2
...
master
Author | SHA1 | Date | |
---|---|---|---|
684e86e61a
|
|||
83fb00ccaa
|
|||
2fbb5b9d46
|
|||
566f31992b
|
|||
a5eb3d7972
|
@@ -3,9 +3,12 @@
|
|||||||
|
|
||||||
| Vendor | Version | Issue |
|
| Vendor | Version | Issue |
|
||||||
| ------ | ------- | ----- |
|
| ------ | ------- | ----- |
|
||||||
|
| Alma | 8-9 | Ensure SELinux Python bindings are present |
|
||||||
| CentOS | 6 | Ensure ACPI Daemon is both running and present so that OS will respond to physical or virtual ACPI events |
|
| CentOS | 6 | Ensure ACPI Daemon is both running and present so that OS will respond to physical or virtual ACPI events |
|
||||||
| CentOS | 6 | Ensure Python OpenSSL support is updated to handle newer TLS features |
|
| CentOS | 6 | Ensure Python OpenSSL support is updated to handle newer TLS features |
|
||||||
| CentOS | 6-8 | Ensure SELinux Python bindings are present |
|
| CentOS | 6-9 | Ensure SELinux Python bindings are present |
|
||||||
| Debian | All | Ensure apt does not reference non-present CDROM media |
|
| Debian | All | Ensure apt does not reference non-present CDROM media |
|
||||||
| Debian | All | Ensure sudo is present |
|
| Debian | All | Ensure sudo is present |
|
||||||
| Fedora | 30-33 | Ensure SELinux Python bindings are present |
|
| Fedora | 30-42 | Ensure SELinux Python bindings are present |
|
||||||
|
| Oracle | 8-9 | Ensure SELinux Python bindings are present |
|
||||||
|
| Rocky | 8-9 | Ensure SELinux Python bindings are present |
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
- ensure_ansible_prereq is defined
|
- ensure_ansible_prereq is defined
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: 'yes'
|
daemon_reload: 'yes'
|
||||||
- name: 'ensure_ansible_prereq.services'
|
- name: 'ensure_ansible_prereq.service_restart'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
- ensure_ansible_prereq is defined
|
- ensure_ansible_prereq is defined
|
||||||
@@ -25,3 +25,5 @@
|
|||||||
loop: '{{ ensure_ansible_prereq.service_list }}'
|
loop: '{{ ensure_ansible_prereq.service_list }}'
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.name }} will be restarted'
|
label: '{{ item.name }} will be restarted'
|
||||||
|
...
|
||||||
|
|
||||||
|
29
tasks/Fedora-41-default.yml
Normal file
29
tasks/Fedora-41-default.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
# tasks file for ensure_ansible_prereq
|
||||||
|
- name: 'package discovery'
|
||||||
|
when:
|
||||||
|
- ansible_system == 'Linux'
|
||||||
|
- packages is not defined
|
||||||
|
ansible.builtin.package_facts:
|
||||||
|
- name: 'service discovery'
|
||||||
|
when:
|
||||||
|
- ansible_system == 'Linux'
|
||||||
|
- services is not defined
|
||||||
|
ansible.builtin.service_facts:
|
||||||
|
- name: 'ensure packages'
|
||||||
|
when:
|
||||||
|
- ansible_system == 'Linux'
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: '{{ item.name }}'
|
||||||
|
state: '{{ item.state }}'
|
||||||
|
use: 'dnf'
|
||||||
|
loop:
|
||||||
|
- name: 'python3-rpm'
|
||||||
|
state: 'present'
|
||||||
|
- name: 'python3-libdnf5'
|
||||||
|
state: 'present'
|
||||||
|
loop_control:
|
||||||
|
label: '{{ item.name }} will be {{ item.state }}'
|
||||||
|
notify:
|
||||||
|
- 'ensure_ansible_prereq.package_facts'
|
||||||
|
- 'ensure_ansible_prereq.service_facts'
|
@@ -83,6 +83,8 @@
|
|||||||
notify:
|
notify:
|
||||||
- 'ensure_ansible_prereq.package_facts'
|
- 'ensure_ansible_prereq.package_facts'
|
||||||
- 'ensure_ansible_prereq.service_facts'
|
- 'ensure_ansible_prereq.service_facts'
|
||||||
|
- 'ensure_ansible_prereq.service_reload'
|
||||||
|
- 'ensure_ansible_prereq.service_restart'
|
||||||
- name: 'ensure services'
|
- name: 'ensure services'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
@@ -101,3 +103,5 @@
|
|||||||
- 'ensure_ansible_prereq.service_facts'
|
- 'ensure_ansible_prereq.service_facts'
|
||||||
- name: 'flush handlers'
|
- name: 'flush handlers'
|
||||||
meta: 'flush_handlers'
|
meta: 'flush_handlers'
|
||||||
|
...
|
||||||
|
|
||||||
|
7
vars/Fedora-42-default.yml
Normal file
7
vars/Fedora-42-default.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
# vars file for ensure_ansible_prereq
|
||||||
|
package_list:
|
||||||
|
- name: 'python3-libselinux'
|
||||||
|
state: 'present'
|
||||||
|
- name: 'python3-libsemanage'
|
||||||
|
state: 'present'
|
Reference in New Issue
Block a user