Role service-tinc: use a task instead of a handler for systemd stuff

This commit is contained in:
Tobias Hachmer 2017-10-03 20:33:08 +02:00
parent 3ee405bdf2
commit 7506fae8a5
2 changed files with 8 additions and 5 deletions

View file

@ -1,8 +1,6 @@
---
- name: configure systemd unit tinc
- name: reload systemd
systemd:
name: tinc
enabled: yes
daemon_reload: yes
- name: restart systemd unit tinc

View file

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