summaryrefslogtreecommitdiff
path: root/roles/install_dhcp/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install_dhcp/tasks')
-rw-r--r--roles/install_dhcp/tasks/main.yml18
1 files changed, 18 insertions, 0 deletions
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