Browse Source
Cleanup duplicate task in etcd role (#7598)
* Remove the duplicate task in etcd role
* Remove inessential delegate_to
pull/7606/head
Hari Hud
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
14 deletions
-
roles/etcd/tasks/gen_certs_script.yml
|
|
@ -16,19 +16,6 @@ |
|
|
|
mode: 0700 |
|
|
|
run_once: yes |
|
|
|
when: inventory_hostname == groups['etcd'][0] |
|
|
|
delegate_to: "{{ groups['etcd'][0] }}" |
|
|
|
|
|
|
|
- name: "Gen_certs | create etcd cert dir (on {{ groups['etcd'][0] }})" |
|
|
|
file: |
|
|
|
path: "{{ etcd_cert_dir }}" |
|
|
|
group: "{{ etcd_cert_group }}" |
|
|
|
state: directory |
|
|
|
owner: kube |
|
|
|
recurse: yes |
|
|
|
mode: 0700 |
|
|
|
run_once: yes |
|
|
|
when: inventory_hostname == groups['etcd'][0] |
|
|
|
delegate_to: "{{ groups['etcd'][0] }}" |
|
|
|
|
|
|
|
- name: Gen_certs | write openssl config |
|
|
|
template: |
|
|
@ -46,7 +33,6 @@ |
|
|
|
dest: "{{ etcd_script_dir }}/make-ssl-etcd.sh" |
|
|
|
mode: 0700 |
|
|
|
run_once: yes |
|
|
|
delegate_to: "{{ groups['etcd'][0] }}" |
|
|
|
when: |
|
|
|
- gen_certs|default(false) |
|
|
|
- inventory_hostname == groups['etcd'][0] |
|
|
|