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 3 years ago
committed by GitHub
parent
commit
f07e24db8f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 14 deletions
  1. 14
      roles/etcd/tasks/gen_certs_script.yml

14
roles/etcd/tasks/gen_certs_script.yml

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

Loading…
Cancel
Save