yaml and ansible linting clean ups

This commit is contained in:
2026-08-09 23:04:34 -05:00
parent 6eb2875e44
commit 306397517d
92 changed files with 300 additions and 435 deletions
+10 -10
View File
@@ -1,6 +1,6 @@
---
# tasks file for ensure_selinux
- name: include variables
- name: Include Variables
when: ["ansible_facts[\"system\"] == 'Linux'"]
ansible.builtin.include_vars:
file: '{{ lookup("first_found", findme) }}'
@@ -21,17 +21,17 @@
- default.yml
paths: [../vars/]
errors: ignore
- name: package discovery
- name: Package Discovery
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["packages"] is not defined
ansible.builtin.package_facts:
- name: service discovery
- name: Service Discovery
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["services"] is not defined
ansible.builtin.service_facts:
- name: ensure packages
- name: Ensure Packages
when:
- ansible_facts["system"] == 'Linux'
- ensure_selinux is defined
@@ -44,7 +44,7 @@
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
notify: [ensure_selinux.package_facts, ensure_selinux.service_facts]
- name: ensure configurations
- name: Ensure Configurations
when:
- ansible_facts["system"] == 'Linux'
- ensure_selinux is defined
@@ -69,7 +69,7 @@
- ensure_selinux.service_facts
- ensure_selinux.service_reload
- ensure_selinux.service_restart
- name: ensure services
- name: Ensure Services
when:
- ansible_facts["system"] == 'Linux'
- ensure_selinux is defined
@@ -83,7 +83,7 @@
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
notify: [ensure_selinux.package_facts, ensure_selinux.service_facts]
- name: Ensure SELinux is configured
- name: Ensure Selinux Is Configured
when:
- ansible_facts["system"] == 'Linux'
- ensure_selinux is defined
@@ -93,7 +93,7 @@
policy: '{{ ensure_selinux.selinux_policy }}'
state: '{{ ensure_selinux.selinux_state }}'
register: ensure_selinux_results
- name: Reboot if required
- name: Reboot If Required
when:
- ansible_facts["system"] == 'Linux'
- ensure_selinux is defined
@@ -103,7 +103,7 @@
- ensure_selinux_results.reboot_required is defined
- ensure_selinux_results.reboot_required
ansible.builtin.reboot:
- name: ensure seboolean
- name: Ensure Seboolean
when:
- ansible_facts["system"] == 'Linux'
- ensure_selinux is defined
@@ -116,5 +116,5 @@
loop: '{{ ensure_selinux.seboolean_list }}'
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
- name: flush handlers
- name: Flush Handlers
ansible.builtin.meta: flush_handlers