Role service-tinc: use a task instead of a handler for systemd stuff
This commit is contained in:
parent
3ee405bdf2
commit
7506fae8a5
2 changed files with 8 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue