From cf5e6c4e1a0235b60321b5e5c4814ed40c3c1e43 Mon Sep 17 00:00:00 2001 From: June Date: Sat, 23 Nov 2024 02:56:16 +0100 Subject: [PATCH] fix ansible-lint error by not comparing to literal false --- playbooks/roles/nginx/tasks/main/config_deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/nginx/tasks/main/config_deploy.yaml b/playbooks/roles/nginx/tasks/main/config_deploy.yaml index c7fac39..47bc050 100644 --- a/playbooks/roles/nginx/tasks/main/config_deploy.yaml +++ b/playbooks/roles/nginx/tasks/main/config_deploy.yaml @@ -7,7 +7,7 @@ when: nginx__use_custom_nginx_conf block: - name: when no `nginx.conf.ansiblesave` is present, save the current `nginx.conf` - when: nginx__nginx_conf_ansiblesave_stat_result.stat.exists == false + when: not nginx__nginx_conf_ansiblesave_stat_result.stat.exists ansible.builtin.copy: force: true dest: /etc/nginx/nginx.conf.ansiblesave