Fix ansible core 2.20 and supported OS list

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-05 18:13:17 -05:00
parent 9fa1ad54c2
commit f73b0d0ce9
131 changed files with 80 additions and 5082 deletions
+17 -17
View File
@@ -2,36 +2,36 @@
# tasks file for ensure_mariadb
- name: 'include variables'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
include_vars:
file: '{{ lookup("first_found", findme ) }}'
name: 'ensure_mariadb'
vars:
findme:
files:
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml'
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-default.yml'
- '{{ ansible_distribution }}-default.yml'
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml'
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-default.yml'
- '{{ ansible_os_family }}-default.yml'
- '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_facts["architecture"] }}.yml'
- '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
- '{{ ansible_facts["distribution"] }}-default.yml'
- '{{ ansible_facts["os_family"] }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_facts["architecture"] }}.yml'
- '{{ ansible_facts["os_family"] }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
- '{{ ansible_facts["os_family"] }}-default.yml'
- 'default.yml'
paths:
- '../vars/'
errors: 'ignore'
- name: 'package discovery'
when:
- ansible_system == 'Linux'
- packages is not defined
- ansible_facts["system"] == 'Linux'
- ansible_facts["packages"] is not defined
ansible.builtin.package_facts:
- name: 'service discovery'
when:
- ansible_system == 'Linux'
- services is not defined
- ansible_facts["system"] == 'Linux'
- ansible_facts["services"] is not defined
ansible.builtin.service_facts:
- name: 'ensure sysctl'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- ensure_mariadb is defined
- ensure_mariadb.sysctl_list is defined
- ensure_mariadb.sysctl_list is iterable
@@ -52,7 +52,7 @@
- 'ensure_mariadb.service_restart'
- name: 'ensure packages'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- ensure_mariadb is defined
- ensure_mariadb.package_list is defined
- ensure_mariadb.package_list is iterable
@@ -69,7 +69,7 @@
- 'ensure_mariadb.service_restart'
- name: 'ensure seboolean'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- ensure_mariadb is defined
- ensure_mariadb.seboolean_list is defined
- ensure_mariadb.seboolean_list is iterable
@@ -87,7 +87,7 @@
- 'ensure_mariadb.service_restart'
- name: 'ensure configurations'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- ensure_mariadb is defined
- ensure_mariadb.template_list is defined
- ensure_mariadb.template_list is iterable
@@ -112,7 +112,7 @@
- 'ensure_mariadb.service_restart'
- name: 'ensure firewall'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- packages["firewalld"] is defined
- packages["python3-firewall"] is defined
- ensure_mariadb is defined
@@ -132,7 +132,7 @@
- 'ensure_mariadb.service_restart'
- name: 'ensure services'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- ensure_mariadb is defined
- ensure_mariadb.service_list is defined
- ensure_mariadb.service_list is iterable