summaryrefslogtreecommitdiffstats
path: root/roles/etcd/tasks/restart.yml
blob: d4a016eec96925810a582e4b2fe7632a3452b8e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---

- name: restart etcd
  service:
    name: "{{ etcd_service }}"
    state: restarted
  when:
    - not g_etcd_certificates_expired | default(false) | bool

- name: stop etcd
  service:
    name: "{{ etcd_service }}"
    state: stopped
  when:
    - g_etcd_certificates_expired | default(false) | bool
- name: start etcd
  service:
    name: "{{ etcd_service }}"
    state: started
  when:
    - g_etcd_certificates_expired | default(false) | bool