mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 10:05:54 +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:
parent
de6967d3ff
commit
7fce59fbc6
144 changed files with 548 additions and 578 deletions
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
- name: skip Alpine
|
||||
meta: end_host
|
||||
when: ansible_distribution == 'Alpine'
|
||||
when: ansible_facts.distribution == 'Alpine'
|
||||
|
||||
- name: check ansible_service_mgr
|
||||
- name: check ansible_facts.service_mgr
|
||||
ansible.builtin.assert:
|
||||
that: ansible_service_mgr == 'systemd'
|
||||
that: ansible_facts.service_mgr == 'systemd'
|
||||
|
||||
- name: Test systemd_facts
|
||||
block:
|
||||
|
|
@ -18,9 +18,9 @@
|
|||
import_tasks: tests.yml
|
||||
|
||||
when: >
|
||||
(ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux'] and ansible_distribution_major_version is version('7', '>=')) or
|
||||
ansible_distribution == 'Fedora' or
|
||||
(ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('15.04', '>=')) or
|
||||
(ansible_distribution == 'Debian' and ansible_distribution_version is version('8', '>=')) or
|
||||
ansible_os_family == 'Suse' or
|
||||
ansible_distribution == 'Archlinux'
|
||||
(ansible_facts.distribution in ['RedHat', 'CentOS', 'ScientificLinux'] and ansible_facts.distribution_major_version is version('7', '>=')) or
|
||||
ansible_facts.distribution == 'Fedora' or
|
||||
(ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_version is version('15.04', '>=')) or
|
||||
(ansible_facts.distribution == 'Debian' and ansible_facts.distribution_version is version('8', '>=')) or
|
||||
ansible_facts.os_family == 'Suse' or
|
||||
ansible_facts.distribution == 'Archlinux'
|
||||
Loading…
Add table
Add a link
Reference in a new issue