ansible-ffibk/roles/service-fastd/tasks/main.yml

39 lines
748 B
YAML
Raw Permalink Normal View History

---
- name: install fastd packages
package:
name: "{{ item }}"
state: present
loop:
- fastd
- git
- name: mask legacy service fastd
systemd:
name: fastd
masked: yes
- 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
template:
src: fastd@_service_overrides.j2
dest: /etc/systemd/system/fastd@.service.d/override.conf
owner: root
group: root
mode: 0644
notify: reload systemd
- name: copy fastd status script
copy:
src: fastd-status
dest: /usr/local/bin/fastd-status
owner: root
group: root
mode: 0755