Fix bugs, Update for EL8
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Adrien Reslinger 2021-01-18 22:53:35 +01:00
parent a4b0c9fc81
commit cecb684e05
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
6 changed files with 37 additions and 49 deletions

View file

@ -100,12 +100,15 @@
# - kubernetes_master|bigip_pool
- name: Check if a node is still tainted
command: kubectl get nodes '{{ ansible_hostname | lower }}' -o jsonpath='{.spec.taints}'
when: kubernetes_master_taint
command: kubectl --kubeconfig=/etc/kubernetes/admin.conf get nodes '{{ ansible_hostname | lower }}' -o jsonpath='{.spec.taints}'
register: current_taint
when:
- kubernetes_master_taint|bool
- name: taint the machine if needed
# command: kubectl --kubeconfig=/etc/kubernetes/admin.conf taint nodes --all node-role.kubernetes.io/master-
command: kubectl taint nodes '{{ ansible_hostname | lower }}' node-role.kubernetes.io/master-
when: kubernetes_master_taint|bool and current_taint.stdout
when:
- kubernetes_master_taint|bool
- current_taint.stdout