|
|
@ -40,7 +40,7 @@ |
|
|
|
# exist on the first master for cases where the first master isn't |
|
|
|
# being run. |
|
|
|
# |
|
|
|
- name: Gen_certs | Create kubernetes config directory (on master[0]) |
|
|
|
- name: "Gen_certs | Create kubernetes config directory (on {{groups['kube-master'][0]}})" |
|
|
|
file: |
|
|
|
path: "{{ kube_config_dir }}" |
|
|
|
state: directory |
|
|
@ -50,7 +50,7 @@ |
|
|
|
tags: [kubelet, k8s-secrets, kube-controller-manager, kube-apiserver, bootstrap-os, apps, network, master, node] |
|
|
|
when: gen_certs|default(false) or gen_tokens|default(false) |
|
|
|
|
|
|
|
- name: Gen_certs | Create kubernetes script directory (on master[0]) |
|
|
|
- name: "Gen_certs | Create kubernetes script directory (on {{groups['kube-master'][0]}})" |
|
|
|
file: |
|
|
|
path: "{{ kube_script_dir }}" |
|
|
|
state: directory |
|
|
@ -60,7 +60,7 @@ |
|
|
|
tags: [k8s-secrets, bootstrap-os] |
|
|
|
when: gen_certs|default(false) or gen_tokens|default(false) |
|
|
|
|
|
|
|
- name: Get_tokens | Make sure the tokens directory exits (on master[0]) |
|
|
|
- name: "Get_tokens | Make sure the tokens directory exits (on {{groups['kube-master'][0]}})" |
|
|
|
file: |
|
|
|
path={{ kube_token_dir }} |
|
|
|
state=directory |
|
|
|