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
|
|
|
|
2018-02-05 15:46:56 +01:00
|
|
|
- name: create systemd override dir for fastd@.service
|
|
|
|
file:
|
|
|
|
path: /etc/systemd/system/fastd@.service.d
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: configure systemd unit overrides
|
2017-10-08 11:35:22 +02:00
|
|
|
template:
|
2018-02-05 15:46:56 +01:00
|
|
|
src: fastd@_service_overrides.j2
|
|
|
|
dest: /etc/systemd/system/fastd@.service.d/override.conf
|
2017-10-08 11:35:22 +02:00
|
|
|
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
|