refactor: refer to ansible facts through ansible_facts.* namespace

Signed-off-by: Norman Ziegner <norman.ziegner@ufz.de>
This commit is contained in:
Norman Ziegner 2024-02-26 10:26:44 +01:00 committed by Norman Ziegner
parent 681ddddce3
commit 857982e6d2
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
- 'Unattended-Upgrade::Sender "jane@example.org"'
- name: "Ubuntu specific verification"
when: "ansible_distribution == 'Ubuntu'"
when: "ansible_facts.distribution == 'Ubuntu'"
block:
- name: "Check for registered variables on Ubuntu"
ansible.builtin.assert:
@ -49,7 +49,7 @@
with_items: "{{ ubuntu_defaults }}"
- name: "Debian specific verification"
when: "ansible_distribution == 'Debian'"
when: "ansible_facts.distribution == 'Debian'"
block:
- name: "Check for registered variables on Debian"
ansible.builtin.assert: