More debugging;Fix variable reference
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-24 12:49:27 +02:00
parent 5d7305aaba
commit daa6f67cf8

View File

@ -46,6 +46,7 @@
- name: Pause to allow initial calls to complete - name: Pause to allow initial calls to complete
ansible.builtin.pause: ansible.builtin.pause:
seconds: 10 seconds: 10
prompt: ''
- name: Poll for completion - name: Poll for completion
ansible.builtin.async_status: ansible.builtin.async_status:
@ -151,7 +152,7 @@
loop_control: loop_control:
pause: 10 pause: 10
- ansible.builtin.debug: - ansible.builtin.debug:
var: pod_state.stdout var: pod_state.results
delegate_to: "{{ ansible_play_hosts[0] }}" delegate_to: "{{ ansible_play_hosts[0] }}"
run_once: true run_once: true
@ -178,6 +179,17 @@
rescue: 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 - name: Debug systemd unit
ansible.builtin.shell: ansible.builtin.shell:
cmd: systemctl status k3s -l --no-pager; journalctl -u k3s.service --no-pager 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 url: https://api.github.com/repos/rancher/fleet/releases/latest
return_content: yes return_content: yes
register: latest_release register: latest_release
- ansible.builtin.debug:
var: latest_release
- name: Rancher Fleet -- Install Helm chart - name: Rancher Fleet -- Install Helm chart
kubernetes.core.helm: kubernetes.core.helm:
@ -219,7 +229,7 @@
wait: yes wait: yes
loop: loop:
- name: fleet-crd - 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 - 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"