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,7 @@
|
|||||||
- name: Join Kubernetes cluster
|
- name: Join Kubernetes cluster
|
||||||
shell: "{{ hostvars['master1']['kubeadm_join_command'] }}"
|
shell: "{{ hostvars['master1']['kubeadm_join_command'] }}"
|
||||||
when:
|
when:
|
||||||
- hostvars['master1']['kubeadm_join_command'] is defined
|
- (hostvars['master1']['kubeadm_join_command'] is defined) and (node_status.stdout | trim == "NOT_IN_CLUSTER")
|
||||||
- node_status.stdout | trim == "NOT_IN_CLUSTER"
|
|
||||||
|
|
||||||
- name: Obter hostname real do nó
|
- name: Obter hostname real do nó
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
Reference in New Issue
Block a user