From daa6f67cf8f639d9cecc35799337e93fa5fdb32c Mon Sep 17 00:00:00 2001 From: djpbessems Date: Sun, 24 Apr 2022 12:49:27 +0200 Subject: [PATCH] More debugging;Fix variable reference --- playbook.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/playbook.yml b/playbook.yml index c9b6485..141aab3 100644 --- a/playbook.yml +++ b/playbook.yml @@ -46,6 +46,7 @@ - name: Pause to allow initial calls to complete ansible.builtin.pause: seconds: 10 + prompt: '' - name: Poll for completion ansible.builtin.async_status: @@ -151,7 +152,7 @@ loop_control: pause: 10 - ansible.builtin.debug: - var: pod_state.stdout + var: pod_state.results delegate_to: "{{ ansible_play_hosts[0] }}" run_once: true @@ -178,6 +179,17 @@ rescue: + - name: Initial node -- Wait for ??? + ansible.builtin.shell: + cmd: kubectl get pod -A + register: pod_state + with_sequence: count=5 + loop_control: + pause: 10 + - ansible.builtin.debug: + var: pod_state.results + + - name: Debug systemd unit ansible.builtin.shell: cmd: systemctl status k3s -l --no-pager; journalctl -u k3s.service --no-pager @@ -207,8 +219,6 @@ url: https://api.github.com/repos/rancher/fleet/releases/latest return_content: yes register: latest_release - - ansible.builtin.debug: - var: latest_release - name: Rancher Fleet -- Install Helm chart kubernetes.core.helm: @@ -219,7 +229,7 @@ wait: yes loop: - name: fleet-crd - url: "https://github.com/rancher/fleet/releases/download/{{ latest_release.tag_name }}/fleet-crd-{{ latest_release.tag_name }}.tgz" + url: "https://github.com/rancher/fleet/releases/download/{{ latest_release.json.tag_name }}/fleet-crd-{{ latest_release.json.tag_name }}.tgz" - name: fleet - url: "https://github.com/rancher/fleet/releases/download/{{ latest_release.tag_name }}/fleet-{{ latest_release.tag_name }}.tgz" + url: "https://github.com/rancher/fleet/releases/download/{{ latest_release.json.tag_name }}/fleet-{{ latest_release.json.tag_name }}.tgz"