Skip to content

Commit

Permalink
chore: wait just for the first node on the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ayr-ton committed Oct 20, 2024
1 parent bd9a461 commit 43b9e33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
path: /var/lib/rancher/k3s/server/token
state: present
timeout: 300
when: inventory_hostname in groups['k3s_control']
when: inventory_hostname == groups['all'][0]
run_once: true

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

- name: Debug - Display token content
debug:
var: k3s_token
when: inventory_hostname in groups['k3s_control']
when: inventory_hostname == groups['all'][0]
run_once: true

0 comments on commit 43b9e33

Please sign in to comment.