From 2714ae68f9953917fa664bccc3e150440ce073d0 Mon Sep 17 00:00:00 2001 From: Pieter van der Merwe Date: Sun, 7 Jul 2019 17:24:37 +0200 Subject: [PATCH] Add wait for node-token file --- contrib/ansible/roles/k3s/master/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/ansible/roles/k3s/master/tasks/main.yml b/contrib/ansible/roles/k3s/master/tasks/main.yml index 95ac5cede2..7c2e7c4181 100644 --- a/contrib/ansible/roles/k3s/master/tasks/main.yml +++ b/contrib/ansible/roles/k3s/master/tasks/main.yml @@ -16,6 +16,10 @@ state: restarted enabled: yes +- name: Wait for node-token + wait_for: + path: /var/lib/rancher/k3s/server/node-token + - name: Register node-token file access mode stat: path: /var/lib/rancher/k3s/server