From cd31d75443119be6580e91d5a9a3ab7742f875ab Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Sat, 18 Mar 2017 18:38:46 +0100 Subject: updated setup_fastd.yml added features: - fastd-services-api - install_nginx - install_monitoring --- roles/install_dhcp/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'roles/install_dhcp/tasks/main.yml') diff --git a/roles/install_dhcp/tasks/main.yml b/roles/install_dhcp/tasks/main.yml index 60cac06..c8912be 100644 --- a/roles/install_dhcp/tasks/main.yml +++ b/roles/install_dhcp/tasks/main.yml @@ -9,6 +9,24 @@ path: /etc/dhcpd.hosts.conf state: touch +- name: install php + pacman: + name: php + state: present + +- name: copy fastd-services-api.php + copy: + src: fastd-services-api.php + dest: /etc/fastd-services-api.php + +- name: setup cronjob for fastd-services-api + cron: + name: fastd-services-api + minute: '*/10' + user: root + cron_file: fastd-api + job: '/usr/bin/php /etc/fastd-services-api.php' + - name: dhcpd.conf template: src: dhcpd.conf.j2 -- cgit v1.2.3-54-g00ecf