Browse Source

Add explicit name printing in task names for deletgated task during

cert creation
pull/905/head
Greg Althaus 7 years ago
parent
commit
0d44599a63
3 changed files with 7 additions and 7 deletions
  1. 4
      roles/etcd/tasks/gen_certs.yml
  2. 4
      roles/kubernetes/secrets/tasks/gen_certs.yml
  3. 6
      roles/kubernetes/secrets/tasks/main.yml

4
roles/etcd/tasks/gen_certs.yml

@ -7,7 +7,7 @@
owner=root
recurse=yes
- name: Gen_certs | create etcd script dir
- name: "Gen_certs | create etcd script dir (on {{groups['etcd'][0]}})"
file:
path: "{{ etcd_script_dir }}"
state: directory
@ -15,7 +15,7 @@
run_once: yes
delegate_to: "{{groups['etcd'][0]}}"
- name: Gen_certs | create etcd cert dir (on first etcd)
- name: "Gen_certs | create etcd cert dir (on {{groups['etcd'][0]}})"
file:
path={{ etcd_cert_dir }}
group={{ etcd_cert_group }}

4
roles/kubernetes/secrets/tasks/gen_certs.yml

@ -1,5 +1,5 @@
---
- 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
@ -9,7 +9,7 @@
tags: [kubelet, k8s-secrets, kube-controller-manager, kube-apiserver, bootstrap-os, apps, network, master, node]
when: gen_certs|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

6
roles/kubernetes/secrets/tasks/main.yml

@ -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

Loading…
Cancel
Save