blob: c6434d024f6508e05820a908827ee867c8cbc747 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
---
- 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
- 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
- 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
- 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
|