mirror of
https://github.com/Expand-sys/kubernetes-rocky9
synced 2025-12-16 15:42:14 +11:00
Create join-workers.yml
This commit is contained in:
parent
c410f299d7
commit
f8eaab3588
1 changed files with 16 additions and 0 deletions
16
ansible-deploy-k8s/join-workers.yml
Normal file
16
ansible-deploy-k8s/join-workers.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
- hosts: workers
|
||||||
|
become: yes
|
||||||
|
gather_facts: yes
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Copy join command from Ansiblehost to the worker nodes.
|
||||||
|
become: yes
|
||||||
|
copy:
|
||||||
|
src: /tmp/kubernetes_join_command
|
||||||
|
dest: /tmp/kubernetes_join_command
|
||||||
|
mode: 0777
|
||||||
|
|
||||||
|
- name: Join the Worker nodes to the cluster.
|
||||||
|
become: yes
|
||||||
|
command: sh /tmp/kubernetes_join_command
|
||||||
|
register: joined_or_not
|
||||||
Loading…
Reference in a new issue