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,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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue