refactor(install): clean wait for k3s to be ready

!5
This commit is contained in:
2023-11-02 10:04:35 +09:30
parent b77cc6a8e9
commit 4465bcd2c4

View File

@ -176,7 +176,12 @@
ansible.builtin.shell:
cmd: |
set -o pipefail
if [ `which jq` ]; then echo $(kubectl get no $(hostname) -o json | jq .status.conditions[4].status | tr -d '"'); else echo jq command not found; exit 127; fi
if [ `which jq` ]; then
echo $(kubectl get no $(hostname) -o json | jq .status.conditions[4].status | tr -d '"');
else
echo jq command not found;
exit 127;
fi
executable: /bin/bash
register: kubernetes_ready_check
retries: 30