From 1a2edc280f824ddabdab5e5c966ee6576d90f90f Mon Sep 17 00:00:00 2001 From: djpbessems Date: Sun, 24 Apr 2022 13:24:35 +0200 Subject: [PATCH] Ignore errors during debug;Debug helm --- playbook.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/playbook.yml b/playbook.yml index 141aab3..a31262e 100644 --- a/playbook.yml +++ b/playbook.yml @@ -46,7 +46,6 @@ - name: Pause to allow initial calls to complete ansible.builtin.pause: seconds: 10 - prompt: '' - name: Poll for completion ansible.builtin.async_status: @@ -151,8 +150,9 @@ with_sequence: count=5 loop_control: pause: 10 + ignore_errors: yes - ansible.builtin.debug: - var: pod_state.results + msg: "{{ pod_state | json_query('results[*].stdout') }}" delegate_to: "{{ ansible_play_hosts[0] }}" run_once: true @@ -186,8 +186,9 @@ with_sequence: count=5 loop_control: pause: 10 + ignore_errors: yes - ansible.builtin.debug: - var: pod_state.results + msg: "{{ pod_state | json_query('results[*].stdout') }}" - name: Debug systemd unit @@ -206,6 +207,12 @@ - applications.k3s.yml tasks: + - ansible.builtin.shell: + cmd: kubectl version;kubectl get node + register: nodes_status + - ansible.builtin.debug: + var: nodes_status + - name: Add Helm chart repositories kubernetes.core.helm_repository: name: "{{ item.name }}"