From 43b9e33341f65289b8782b5fa2780a6fb20fa13a Mon Sep 17 00:00:00 2001 From: Ayrton Date: Sat, 19 Oct 2024 21:16:40 -0300 Subject: [PATCH] chore: wait just for the first node on the environment --- molecule/default/converge.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index 0d31a59..c18caf1 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -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