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: systemd:
name: tinc
enabled: yes
daemon_reload: yes daemon_reload: yes
- name: restart systemd unit tinc - name: restart systemd unit tinc

View file

@ -3,9 +3,14 @@
apt: apt:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
notify: reload systemd
with_items: with_items:
- tinc - tinc
notify: configure systemd unit tinc
- name: configure systemd unit tinc
systemd:
name: tinc
enabled: yes
- name: clone icvpn repo - name: clone icvpn repo
git: git: