Add rescue tasks for debugging
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Danny Bessems 2022-04-21 09:58:03 +02:00
parent 61d84177c0
commit bd1b8d3482
1 changed files with 9 additions and 0 deletions

View File

@ -155,4 +155,13 @@
K3S_TOKEN: "{{ cluster.token }}" # (hostvars[ansible_play_hosts[0]]).cluster.token
K3S_URL: "{{ 'https://' + ( cluster.virtualip | ansible.utils.ipaddr('address') ) + ':6443' }}"
rescue:
- name: Debug systemd unit
ansible.builtin.shell:
cmd: systemctl status k3s -l --no-pager; journalctl -u k3s.service -b --nopager
register: debug
- ansible.builtin.debug:
var: debug.stdout
when: inventory_hostname != ansible_play_hosts[0]