Cleanup duplicate task in etcd role (#7598)
* Remove the duplicate task in etcd role * Remove inessential delegate_topull/7606/head
parent
5d5be3e96a
commit
f07e24db8f
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue