Remove debugging
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-22 20:41:41 +02:00
parent 412100e616
commit d4f366232e

View File

@ -147,20 +147,12 @@
until: api_readycheck.apiVersion is defined
retries: 3
delay: 30
- ansible.builtin.debug:
var: api_readycheck
delegate_to: "{{ ansible_play_hosts[0] }}"
run_once: true
- block:
# - name: Additional nodes -- Wait for available API
# ansible.builtin.wait_for:
# host: "{{ cluster.virtualip | ansible.utils.ipaddr('address') }}"
# port: 6443
# timeout: 300
- name: Additional nodes -- Install K3s binary
ansible.builtin.shell:
cmd: "curl -sfL https://get.k3s.io | sh -s - server --disable local-storage"
@ -168,13 +160,13 @@
K3S_TOKEN: "{{ cluster.token }}" # (hostvars[ansible_play_hosts[0]]).cluster.token
K3S_URL: "{{ 'https://' + ( cluster.virtualip | ansible.utils.ipaddr('address') ) + ':6443' }}"
rescue:
# rescue:
- name: Debug systemd unit
ansible.builtin.shell:
cmd: systemctl status k3s -l --no-pager; journalctl -u k3s.service -b --no-pager
register: debug
- ansible.builtin.debug:
var: debug.stdout
# - name: Debug systemd unit
# ansible.builtin.shell:
# cmd: systemctl status k3s -l --no-pager; journalctl -u k3s.service -b --no-pager
# register: debug
# - ansible.builtin.debug:
# var: debug.stdout
when: inventory_hostname != ansible_play_hosts[0]