mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Integration tests: replace ansible_xxx with ansible_facts.xxx (#11479)
Replace ansible_xxx with ansible_facts.xxx.
This commit is contained in:
@@ -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'
|
||||
Reference in New Issue
Block a user