Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#897 from holser/flush_handlers_bef…
Browse files Browse the repository at this point in the history
…ore_etcd

Flush handlers before etcd restart
  • Loading branch information
mattymo authored Jan 18, 2017
2 parents 1ee33d3 + 43fa72b commit 5420fa9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions roles/etcd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
- include: refresh_config.yml
when: is_etcd_master

- name: Ensure etcd is running
service:
name: etcd
state: started
enabled: yes
when: is_etcd_master

- name: Restart etcd if binary or certs changed
command: /bin/true
notify: restart etcd
when: etcd_deployment_type == "host" and etcd_copy.stdout_lines and is_etcd_master
or etcd_secret_changed|default(false)

# Reload systemd before starting service
# reload-systemd
- meta: flush_handlers

- name: Ensure etcd is running
service:
name: etcd
state: started
enabled: yes
when: is_etcd_master

# After etcd cluster is assembled, make sure that
# initial state of the cluster is in `existing`
# state insted of `new`.
Expand Down

0 comments on commit 5420fa9

Please sign in to comment.