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/files/fastd-services-api.php | 44 +++++++++++++++++++++++++ roles/install_dhcp/tasks/main.yml | 18 ++++++++++ 2 files changed, 62 insertions(+) create mode 100644 roles/install_dhcp/files/fastd-services-api.php (limited to 'roles/install_dhcp') diff --git a/roles/install_dhcp/files/fastd-services-api.php b/roles/install_dhcp/files/fastd-services-api.php new file mode 100644 index 0000000..4eedd73 --- /dev/null +++ b/roles/install_dhcp/files/fastd-services-api.php @@ -0,0 +1,44 @@ +#!/usr/bin/php -f + 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