Fixing conditionals

This commit is contained in:
mustard 2025-02-28 12:37:54 +01:00
parent 1e99fb4984
commit 28f8f3d587

View file

@ -267,13 +267,13 @@
- name: Check that allow all rule doesn't exist
stat:
path: '/etc/polkit-1/rules.d/00-qubes-allow-all.rules'
register: stat_result
register: allow_all_result
- name: Delete allow all rule
ansible.builtin.file:
path: '/etc/polkit-1/rules.d/00-qubes-allow-all.rules'
state: 'absent'
when: not stat_result.stat.exists
when: allow_all_result.stat.exists