More debugging;Fix variable reference
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
5d7305aaba
commit
daa6f67cf8
20
playbook.yml
20
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user