From d4f366232e70c5f47e1b3aed2f996d2fe6d058a9 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Fri, 22 Apr 2022 20:41:41 +0200 Subject: [PATCH] Remove debugging --- playbook.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/playbook.yml b/playbook.yml index df21a49..7e7dd3c 100644 --- a/playbook.yml +++ b/playbook.yml @@ -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]