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
+8 -8
View File
@@ -1,6 +1,6 @@
---
# tasks file for ensure_repo_epel
- 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_repo_epel is defined
@@ -46,7 +46,7 @@
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
notify: [ensure_repo_epel.package_facts, ensure_repo_epel.service_facts]
- name: ensure services
- name: Ensure Services
when:
- ansible_facts["system"] == 'Linux'
- ensure_repo_epel is defined
@@ -60,7 +60,7 @@
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
notify: [ensure_repo_epel.package_facts, ensure_repo_epel.service_facts]
- name: prioritize oracle epel repo
- name: Prioritize Oracle Epel Repo
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["distribution"] == 'OracleLinux'
@@ -72,7 +72,7 @@
no_extra_spaces: true
mode: '0644'
create: false
- name: deprioritize upstream epel repo
- name: Deprioritize Upstream Epel Repo
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["distribution"] == 'OracleLinux'
@@ -84,5 +84,5 @@
no_extra_spaces: true
mode: '0644'
create: false
- name: flush handlers
- name: Flush Handlers
ansible.builtin.meta: flush_handlers