2017-10-03 20:25:17 +02:00
|
|
|
---
|
|
|
|
- name: install fastd packages
|
2017-10-11 17:53:20 +02:00
|
|
|
package:
|
2017-10-03 20:25:17 +02:00
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- fastd
|
|
|
|
- git
|
2017-10-06 10:49:41 +02:00
|
|
|
|
|
|
|
- name: mask legacy service fastd
|
|
|
|
systemd:
|
|
|
|
name: fastd
|
|
|
|
masked: yes
|
2017-10-08 11:35:22 +02:00
|
|
|
|
|
|
|
- name: write systemd unit fastd@.service
|
|
|
|
template:
|
|
|
|
src: fastd@.service.j2
|
|
|
|
dest: /etc/systemd/system/fastd@.service
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify: reload systemd
|
2017-11-06 17:41:17 +01:00
|
|
|
|
|
|
|
- name: copy fastd status script
|
|
|
|
copy:
|
|
|
|
src: fastd-status
|
|
|
|
dest: /usr/local/bin/fastd-status
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|