Skip to content

Commit 43b9e33

Browse files
committed
chore: wait just for the first node on the environment
1 parent bd9a461 commit 43b9e33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

molecule/default/converge.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
path: /var/lib/rancher/k3s/server/token
1818
state: present
1919
timeout: 300
20-
when: inventory_hostname in groups['k3s_control']
20+
when: inventory_hostname == groups['all'][0]
2121
run_once: true
2222

2323
- name: Ensure cluster token is captured from control node
2424
slurp:
2525
src: /var/lib/rancher/k3s/server/token
2626
register: k3s_token
27-
when: inventory_hostname in groups['k3s_control']
27+
when: inventory_hostname == groups['all'][0]
2828
run_once: true
2929

3030
- name: Debug - Display token content
3131
debug:
3232
var: k3s_token
33-
when: inventory_hostname in groups['k3s_control']
33+
when: inventory_hostname == groups['all'][0]
3434
run_once: true

0 commit comments

Comments
 (0)