mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-10-27 16:53:04 +00:00
8 lines
271 B
YAML
8 lines
271 B
YAML
- name: Definir hostname único
|
|
hostname:
|
|
name: "ubuntu-{{ ansible_play_hosts.index(inventory_hostname) }}"
|
|
|
|
- name: Join Kubernetes cluster
|
|
shell: "{{ hostvars['master1']['kubeadm_join_command'] }}"
|
|
when: hostvars['master1']['kubeadm_join_command'] is defined
|