initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
- name: Check if node joined
|
||||
stat:
|
||||
path: /etc/kubernetes/kubelet.conf
|
||||
register: kubelet_conf
|
||||
|
||||
- name: Join node
|
||||
shell: "{{ hostvars[groups['master'][0]]['join_command'] }}"
|
||||
when: not kubelet_conf.stat.exists
|
||||
Reference in New Issue
Block a user