mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-10-27 08:43:05 +00:00
Update roles/kube-node/tasks/main.yml
This commit is contained in:
@ -13,8 +13,8 @@
|
||||
- name: Join Kubernetes cluster
|
||||
shell: "{{ hostvars['master1']['kubeadm_join_command'] }}"
|
||||
when:
|
||||
- hostvars['master1']['kubeadm_join_command'] is defined
|
||||
- "'NOT_IN_CLUSTER' in node_status.stdout"
|
||||
- hostvars['master1']['kubeadm_join_command'] is defined
|
||||
- node_status.stdout | trim == "NOT_IN_CLUSTER"
|
||||
|
||||
- name: Obter hostname real do nó
|
||||
become: true
|
||||
|
||||
Reference in New Issue
Block a user