From 95bd278ba1bd66292dd83339b7f674becbf65086 Mon Sep 17 00:00:00 2001 From: Otabek Ismoilov <107093598+ismoilovdevml@users.noreply.github.com> Date: Sat, 7 Sep 2024 21:38:20 +0500 Subject: [PATCH 1/2] fix: Correct conditional check for PSA config in add-pod-security-admission task --- roles/rke2_server/tasks/add-pod-security-admission-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..e80f699 100644 --- a/roles/rke2_server/tasks/add-pod-security-admission-config.yml +++ b/roles/rke2_server/tasks/add-pod-security-admission-config.yml @@ -35,7 +35,7 @@ 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: From a0ab1662963490704d167e1bb7c8599347376fd4 Mon Sep 17 00:00:00 2001 From: Otabek Ismoilov <107093598+ismoilovdevml@users.noreply.github.com> Date: Sat, 7 Sep 2024 21:56:55 +0500 Subject: [PATCH 2/2] fix: Correct conditional check for Ansible managed comments in PSA config task --- roles/rke2_server/tasks/add-pod-security-admission-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e80f699..9a6b2e5 100644 --- a/roles/rke2_server/tasks/add-pod-security-admission-config.yml +++ b/roles/rke2_server/tasks/add-pod-security-admission-config.yml @@ -42,4 +42,4 @@ path: "/etc/rancher/rke2/pod-security-admission-config.yaml" state: absent when: - - ansible_managed_check.changed | bool is false + - ansible_managed_check.changed | bool