Ansible Core 2.20 fixes and Supported OS fixes

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-05 14:06:42 -05:00
parent 059e196640
commit d5f19143df
4 changed files with 31 additions and 13 deletions
+11 -11
View File
@@ -2,18 +2,18 @@
# tasks file for ensure_repo_epel # tasks file for ensure_repo_epel
- name: 'include variables' - name: 'include variables'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
include_vars: include_vars:
file: '{{ lookup("first_found", findme ) }}' file: '{{ lookup("first_found", findme ) }}'
name: 'ensure_repo_epel' name: 'ensure_repo_epel'
vars: vars:
findme: findme:
files: files:
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml' - '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_architecture }}.yml'
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-default.yml' - '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
- '{{ ansible_distribution }}-default.yml' - '{{ ansible_facts["distribution"] }}-default.yml'
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml' - '{{ ansible_os_family }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_architecture }}.yml'
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-default.yml' - '{{ ansible_os_family }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
- '{{ ansible_os_family }}-default.yml' - '{{ ansible_os_family }}-default.yml'
- 'default.yml' - 'default.yml'
paths: paths:
@@ -21,17 +21,17 @@
errors: 'ignore' errors: 'ignore'
- name: 'package discovery' - name: 'package discovery'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- packages is not defined - ansible_facts["packages"] is not defined
ansible.builtin.package_facts: ansible.builtin.package_facts:
- name: 'service discovery' - name: 'service discovery'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- services is not defined - services is not defined
ansible.builtin.service_facts: ansible.builtin.service_facts:
- name: 'ensure packages' - name: 'ensure packages'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_repo_epel is defined - ensure_repo_epel is defined
- ensure_repo_epel.package_list is defined - ensure_repo_epel.package_list is defined
- ensure_repo_epel.package_list is iterable - ensure_repo_epel.package_list is iterable
@@ -48,7 +48,7 @@
- 'ensure_repo_epel.service_facts' - 'ensure_repo_epel.service_facts'
- name: 'ensure services' - name: 'ensure services'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_repo_epel is defined - ensure_repo_epel is defined
- ensure_repo_epel.service_list is defined - ensure_repo_epel.service_list is defined
- ensure_repo_epel.service_list is iterable - ensure_repo_epel.service_list is iterable
@@ -1,7 +1,8 @@
--- ---
# vars file for ensure_repo_epel # vars file for ensure_repo_epel
package_list: package_list:
- name: 'epel-release' - disable_gpg_check: 'yes'
name: 'epel-release'
state: 'present' state: 'present'
url: 'epel-release' url: 'epel-release'
+16
View File
@@ -0,0 +1,16 @@
---
# vars file for ensure_repo_epel
package_list:
- disable_gpg_check: 'yes'
name: 'oracle-epel-release-el9'
state: 'present'
url: 'oracle-epel-release-el9'
- disable_gpg_check: 'yes'
name: 'oraclelinux-developer-release-el9'
state: 'present'
url: 'oraclelinux-developer-release-el9'
- disable_gpg_check: 'yes'
name: 'epel-release'
state: 'present'
url: 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm'
@@ -1,7 +1,8 @@
--- ---
# vars file for ensure_repo_epel # vars file for ensure_repo_epel
package_list: package_list:
- name: 'epel-release' - disable_gpg_check: 'yes'
name: 'epel-release'
state: 'present' state: 'present'
url: 'epel-release' url: 'epel-release'