Skip to content

Commit

Permalink
ansible-scylla-node: Remove invalid conditions in ssl.yml
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
igorribeiroduarte committed Nov 28, 2024
1 parent ec46f27 commit bd40c3a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ansible-scylla-node/tasks/ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit bd40c3a

Please sign in to comment.