blob: 2f59b18a678f639b270985328566209a23dcd986 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
- name: Create a rke user on the node
user:
name: "{{ rke_username }}"
groups: docker
password_lock: yes
- name: Distribute rke user ssh public key
authorized_key:
user: "{{ rke_username }}"
key: "{{ hostvars[groups['infrastructure'][0]].cluster_public_key }}"
- name: "Ensure that '{{ kubernetes_config_dir }}' is present"
file:
path: "{{ kubernetes_config_dir }}"
state: directory
mode: 0755
- name: Prepare kubelet static config
template:
src: "kubelet-static-config.yml.j2"
dest: "{{ kubernetes_config_dir }}/{{ kubelet.static_config }}"
|