More ansible 2.20 fixes

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-04 22:17:49 -05:00
parent 4ad0b8e6e6
commit 1797f897d4
+9 -9
View File
@@ -2,7 +2,7 @@
# tasks file for ensure_git # tasks file for ensure_git
- 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_git' name: 'ensure_git'
@@ -21,17 +21,17 @@
errors: 'ignore' errors: 'ignore'
- name: 'package discovery' - name: 'package discovery'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ansible_facts["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'
- ansible_facts["services"] is not defined - ansible_facts["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_git is defined - ensure_git is defined
- ensure_git.package_list is defined - ensure_git.package_list is defined
- ensure_git.package_list is iterable - ensure_git.package_list is iterable
@@ -46,7 +46,7 @@
- 'ensure_git.service_facts' - 'ensure_git.service_facts'
- name: 'ensure configurations' - name: 'ensure configurations'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_git is defined - ensure_git is defined
- ensure_git.template_list is defined - ensure_git.template_list is defined
- ensure_git.template_list is iterable - ensure_git.template_list is iterable
@@ -71,7 +71,7 @@
- 'ensure_git.service_restart' - 'ensure_git.service_restart'
- name: 'ensure services' - name: 'ensure services'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_git is defined - ensure_git is defined
- ensure_git.service_list is defined - ensure_git.service_list is defined
- ensure_git.service_list is iterable - ensure_git.service_list is iterable
@@ -87,7 +87,7 @@
- 'ensure_git.service_facts' - 'ensure_git.service_facts'
- name: 'Ensure SELinux is configured' - name: 'Ensure SELinux is configured'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_git is defined - ensure_git is defined
- ensure_git.selinux_policy is defined - ensure_git.selinux_policy is defined
- ensure_git.selinux_state is defined - ensure_git.selinux_state is defined
@@ -102,7 +102,7 @@
- 'ensure_git.service_restart' - 'ensure_git.service_restart'
- name: 'Reboot if required' - name: 'Reboot if required'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_git is defined - ensure_git is defined
- ensure_git.selinux_policy is defined - ensure_git.selinux_policy is defined
- ensure_git.selinux_state is defined - ensure_git.selinux_state is defined
@@ -112,7 +112,7 @@
reboot: reboot:
- name: 'ensure seboolean' - name: 'ensure seboolean'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_git is defined - ensure_git is defined
- ensure_git.seboolean_list is defined - ensure_git.seboolean_list is defined
- ensure_git.seboolean_list is iterable - ensure_git.seboolean_list is iterable