Integration tests: replace ansible_xxx with ansible_facts.xxx (#11479)

Replace ansible_xxx with ansible_facts.xxx.
This commit is contained in:
Felix Fontein
2026-02-07 18:18:48 +01:00
committed by GitHub
parent 106817316d
commit 476f2bf641
144 changed files with 548 additions and 578 deletions

View File

@@ -46,5 +46,5 @@
method: system
when: |
ansible_distribution == 'Fedora' or
ansible_distribution == 'Ubuntu' and not ansible_distribution_major_version | int < 16
ansible_facts.distribution == 'Fedora' or
ansible_facts.distribution == 'Ubuntu' and not ansible_facts.distribution_major_version | int < 16

View File

@@ -7,19 +7,19 @@
dnf:
name: flatpak
state: present
when: ansible_distribution == 'Fedora'
when: ansible_facts.distribution == 'Fedora'
- block:
- name: Activate flatpak ppa on Ubuntu versions older than 18.04/bionic
apt_repository:
repo: ppa:alexlarsson/flatpak
state: present
mode: '0644'
when: ansible_lsb.major_release | int < 18
when: ansible_facts.lsb.major_release | int < 18
- name: Install flatpak package on Ubuntu
apt:
name: flatpak
state: present
when: ansible_distribution == 'Ubuntu'
when: ansible_facts.distribution == 'Ubuntu'
- name: Install flatpak remote for testing check mode
flatpak_remote:
name: check-mode-test-remote