mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
[PR #11479/476f2bf6 backport][stable-12] Integration tests: replace ansible_xxx with ansible_facts.xxx (#11480)
Integration tests: replace ansible_xxx with ansible_facts.xxx (#11479)
Replace ansible_xxx with ansible_facts.xxx.
(cherry picked from commit 476f2bf641)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -33,13 +33,13 @@
|
||||
- name: MACOS | Find brew binary
|
||||
command: which brew
|
||||
register: brew_which
|
||||
when: ansible_distribution in ['MacOSX']
|
||||
when: ansible_facts.distribution in ['MacOSX']
|
||||
|
||||
- name: MACOS | Get owner of brew binary
|
||||
stat:
|
||||
path: "{{ brew_which.stdout }}"
|
||||
register: brew_stat
|
||||
when: ansible_distribution in ['MacOSX']
|
||||
when: ansible_facts.distribution in ['MacOSX']
|
||||
|
||||
- name: MACOS | Install 7zip package
|
||||
homebrew:
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
- name: Doesn't work with Fedora 43 for some reason
|
||||
meta: end_play
|
||||
when:
|
||||
- ansible_distribution == 'Fedora' and ansible_distribution_major_version is version('43', '==')
|
||||
- ansible_facts.distribution == 'Fedora' and ansible_facts.distribution_major_version is version('43', '==')
|
||||
|
||||
- name: Install EPEL repository (RHEL only)
|
||||
include_role:
|
||||
name: setup_epel
|
||||
when:
|
||||
- ansible_distribution in ['RedHat', 'CentOS']
|
||||
- ansible_distribution_major_version is version('9', '<')
|
||||
- ansible_facts.distribution in ['RedHat', 'CentOS']
|
||||
- ansible_facts.distribution_major_version is version('9', '<')
|
||||
|
||||
- name: Install 7zip
|
||||
import_tasks: 7zip.yml
|
||||
|
||||
Reference in New Issue
Block a user