diff --git a/roles/service-tinc/handlers/main.yml b/roles/service-tinc/handlers/main.yml index b88ce92..c829add 100644 --- a/roles/service-tinc/handlers/main.yml +++ b/roles/service-tinc/handlers/main.yml @@ -1,9 +1,7 @@ --- -- name: configure systemd unit tinc +- name: reload systemd systemd: - name: tinc - enabled: yes - daemon_reload: yes + daemon_reload: yes - name: restart systemd unit tinc systemd: diff --git a/roles/service-tinc/tasks/main.yml b/roles/service-tinc/tasks/main.yml index c1ff01f..01adf45 100644 --- a/roles/service-tinc/tasks/main.yml +++ b/roles/service-tinc/tasks/main.yml @@ -3,9 +3,14 @@ apt: name: "{{ item }}" state: present + notify: reload systemd with_items: - tinc - notify: configure systemd unit tinc + +- name: configure systemd unit tinc + systemd: + name: tinc + enabled: yes - name: clone icvpn repo git: