Skip to content

Instantly share code, notes, and snippets.

@lioneltchami
Created July 15, 2022 06:18
Show Gist options
  • Select an option

  • Save lioneltchami/edb858001e8ee2115d01ee850b726e32 to your computer and use it in GitHub Desktop.

Select an option

Save lioneltchami/edb858001e8ee2115d01ee850b726e32 to your computer and use it in GitHub Desktop.
- name: Copy the join command to {{ k8s_cluster_name }} cluster
copy:
src: "./{{ k8s_cluster_name }}-join-command"
dest: /home/{{ k8s_node_admin_user }}/{{ k8s_cluster_name }}-join-command
owner: "{{ k8s_node_admin_user }}"
group: "{{ k8s_node_admin_group }}"
mode: 0760
- name: Join the node to cluster {{ k8s_cluster_name }}
command: sh /home/{{ k8s_node_admin_user }}/{{ k8s_cluster_name }}-join-command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment