diff --git a/handlers/main.yml b/handlers/main.yml index bb7fde2..464e306 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,4 +1,10 @@ --- +- name: restart etcd + ansible.builtin.systemd_service: + daemon_reload: true + name: etcd + state: restarted + - name: reload systemd systemd: daemon_reload: yes diff --git a/tasks/main.yml b/tasks/main.yml index 4554360..6ef4799 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -40,6 +40,8 @@ group: root with_items: - "{{ etcd_certificates }}" + notify: + - restart etcd no_log: true tags: - etcd