Skip to content

Commit 7518ec5

Browse files
committed
fix deleting secrets from old nodes
1 parent a19c3e8 commit 7518ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/first_server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
delete secret {{ item }}.node-password.rke2 -n kube-system 2>&1 || true
177177
args:
178178
executable: /bin/bash
179-
with_items: "{{ registered_node_names.stdout_lines | difference(node_names) }}"
179+
with_items: "{{ registered_node_names.stdout_lines | difference([rke2_node_name]) }}"
180180
changed_when: false
181181

182182
- name: Remove old nodes

0 commit comments

Comments
 (0)