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 }}"