mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
Integration tests: replace ansible_xxx with ansible_facts.xxx (#11479)
Replace ansible_xxx with ansible_facts.xxx.
This commit is contained in:
parent
106817316d
commit
476f2bf641
144 changed files with 548 additions and 578 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue