You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
- name: install fastd
|
|
|
|
become: yes
|
|
|
|
become_user: '{{ aur_user }}'
|
|
|
|
aur:
|
|
|
|
name: fastd
|
|
|
|
tool: yaourt
|
|
|
|
|
|
|
|
- name: create ffmyk folder
|
|
|
|
file:
|
|
|
|
path: /etc/fastd/ffmyk
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: fastd.conf
|
|
|
|
template:
|
|
|
|
src: fastd.conf.j2
|
|
|
|
dest: /etc/fastd/ffmyk/fastd.conf
|
|
|
|
mode: 0640
|
|
|
|
notify: restart fastd
|
|
|
|
|
|
|
|
- name: create backbone folder
|
|
|
|
file:
|
|
|
|
path: /etc/fastd/ffmyk/backbone
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: add backbone peers
|
|
|
|
copy:
|
|
|
|
src: '{{ item }}'
|
|
|
|
dest: /etc/fastd/ffmyk/backbone/{{ item }}
|
|
|
|
with_items:
|
|
|
|
- fastd1
|
|
|
|
- fastd2
|
|
|
|
- fastd3
|
|
|
|
- fastd4
|
|
|
|
- fastd5
|
|
|
|
- fastd6
|
|
|
|
- fastd7
|
|
|
|
- fastd8
|
|
|
|
- fastd9
|
|
|
|
- fastd10
|
|
|
|
- fastd11
|
|
|
|
- fastd12
|
|
|
|
- fastd13
|
|
|
|
- fastd14
|
|
|
|
- fastd15
|
|
|
|
notify: reload fastd
|
|
|
|
|
|
|
|
- name: add fastd bin folder
|
|
|
|
file:
|
|
|
|
path: /etc/fastd/ffmyk/bin
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: add fastd up script
|
|
|
|
template:
|
|
|
|
src: fastd_up.sh.j2
|
|
|
|
dest: /etc/fastd/ffmyk/bin/up.sh
|
|
|
|
mode: 0744
|
|
|
|
notify: restart fastd
|
|
|
|
|
|
|
|
- name: add fastd peers folder
|
|
|
|
file:
|
|
|
|
path: /etc/fastd/ffmyk/peers
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: add fastd peer api script
|
|
|
|
copy:
|
|
|
|
src: fastd-api.php
|
|
|
|
dest: /etc/fastd/ffmyk/bin/fastd-api.php
|
|
|
|
|
|
|
|
- name: setup cronjob for fastd-api
|
|
|
|
cron:
|
|
|
|
name: fastd-api
|
|
|
|
minute: '*/10'
|
|
|
|
user: root
|
|
|
|
cron_file: fastd-api
|
|
|
|
job: '/usr/bin/php /etc/fastd/ffmyk/bin/fastd-api.php'
|
|
|
|
|
|
|
|
- name: start and enable fastd service
|
|
|
|
systemd:
|
|
|
|
name: fastd@ffmyk.service
|
|
|
|
enabled: yes
|
|
|
|
state: started
|