diff --git a/roles/rke2_server/tasks/add-pod-security-admission-config.yml b/roles/rke2_server/tasks/add-pod-security-admission-config.yml index 4b7a193..9a6b2e5 100644 --- a/roles/rke2_server/tasks/add-pod-security-admission-config.yml +++ b/roles/rke2_server/tasks/add-pod-security-admission-config.yml @@ -35,11 +35,11 @@ state: present check_mode: yes register: ansible_managed_check - when: stat_result.stat.exists | bool is true + when: stat_result.stat.exists | bool - name: Remove the PSA config file if exists and has ansible managed comments ansible.builtin.file: path: "/etc/rancher/rke2/pod-security-admission-config.yaml" state: absent when: - - ansible_managed_check.changed | bool is false + - ansible_managed_check.changed | bool