From bd40c3a69c3423b45168f0d4ff3d93bc0c3e1319 Mon Sep 17 00:00:00 2001 From: Igor Ribeiro Barbosa Duarte Date: Thu, 28 Nov 2024 15:50:24 -0300 Subject: [PATCH] ansible-scylla-node: Remove invalid conditions in ssl.yml When you register a variable in a loop, ansible puts the results inside a results object, so trying to access the '_node_crt.stat' and '_node_key.stat' directly as it was being done doesn't work. --- ansible-scylla-node/tasks/ssl.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ansible-scylla-node/tasks/ssl.yml b/ansible-scylla-node/tasks/ssl.yml index e87fb5f6..9953233d 100644 --- a/ansible-scylla-node/tasks/ssl.yml +++ b/ansible-scylla-node/tasks/ssl.yml @@ -8,7 +8,6 @@ register: _node_crt loop: "{{ groups['scylla'] }}" delegate_to: localhost - when: _node_crt is not defined or _node_crt.stat.exists == True run_once: true - name: For every node, check if key file exists @@ -17,7 +16,6 @@ register: _node_key loop: "{{ groups['scylla'] }}" delegate_to: localhost - when: _node_key is not defined or _node_key.stat.exists == True run_once: true - name: Set existence of crt and key as a single fact