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
|
|
@ -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