Skip to content
Snippets Groups Projects
Unverified Commit f07e24db authored by Hari Hud's avatar Hari Hud Committed by GitHub
Browse files

Cleanup duplicate task in etcd role (#7598)

* Remove the duplicate task in etcd role

* Remove inessential delegate_to
parent 5d5be3e9
Branches
Tags
No related merge requests found
...@@ -16,19 +16,6 @@ ...@@ -16,19 +16,6 @@
mode: 0700 mode: 0700
run_once: yes run_once: yes
when: inventory_hostname == groups['etcd'][0] 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 - name: Gen_certs | write openssl config
template: template:
...@@ -46,7 +33,6 @@ ...@@ -46,7 +33,6 @@
dest: "{{ etcd_script_dir }}/make-ssl-etcd.sh" dest: "{{ etcd_script_dir }}/make-ssl-etcd.sh"
mode: 0700 mode: 0700
run_once: yes run_once: yes
delegate_to: "{{ groups['etcd'][0] }}"
when: when:
- gen_certs|default(false) - gen_certs|default(false)
- inventory_hostname == groups['etcd'][0] - inventory_hostname == groups['etcd'][0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment