Cleanup duplicate task in etcd role (#7598)

* Remove the duplicate task in etcd role

* Remove inessential delegate_to
This commit is contained in:
Hari Hud 2021-05-11 04:41:36 +05:30 committed by GitHub
parent 5d5be3e96a
commit f07e24db8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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