|
|
@ -32,25 +32,11 @@
|
|
|
|
notify: restart fastd{{ item.name }}
|
|
|
|
notify: restart fastd{{ item.name }}
|
|
|
|
with_items: "{{ sites }}"
|
|
|
|
with_items: "{{ sites }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: add fastd peers folder
|
|
|
|
- name: add fastd verify script
|
|
|
|
file:
|
|
|
|
copy:
|
|
|
|
path: /etc/fastd/ff{{ item.name }}/peers
|
|
|
|
src: verify.sh
|
|
|
|
state: directory
|
|
|
|
dest: /etc/fastd/ff{{ item.name }}/bin/verify.sh
|
|
|
|
with_items: "{{ sites }}"
|
|
|
|
mode: 0744
|
|
|
|
|
|
|
|
|
|
|
|
- name: add fastd peer api script
|
|
|
|
|
|
|
|
template:
|
|
|
|
|
|
|
|
src: fastd-api.php.j2
|
|
|
|
|
|
|
|
dest: /etc/fastd/ff{{ item.name }}/bin/fastd-api.php
|
|
|
|
|
|
|
|
with_items: "{{ sites }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: setup cronjob for fastd-api
|
|
|
|
|
|
|
|
cron:
|
|
|
|
|
|
|
|
name: fastd-api-{{ item.name }}
|
|
|
|
|
|
|
|
minute: '*/10'
|
|
|
|
|
|
|
|
user: root
|
|
|
|
|
|
|
|
cron_file: fastd-api
|
|
|
|
|
|
|
|
job: '/usr/bin/php /etc/fastd/ff{{ item.name }}/bin/fastd-api.php'
|
|
|
|
|
|
|
|
with_items: "{{ sites }}"
|
|
|
|
with_items: "{{ sites }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: start and enable fastd service
|
|
|
|
- name: start and enable fastd service
|
|
|
|