From d82f8524972086862f64750f325ba067ea993d86 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Mon, 3 Jul 2017 09:46:42 +0200 Subject: fastd working --- roles/install_dhcp/tasks/main.yml | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'roles/install_dhcp/tasks') diff --git a/roles/install_dhcp/tasks/main.yml b/roles/install_dhcp/tasks/main.yml index 2e85106..4bcf845 100644 --- a/roles/install_dhcp/tasks/main.yml +++ b/roles/install_dhcp/tasks/main.yml @@ -4,24 +4,25 @@ name: dhcp state: present -- name: create dhcp file for static ips - copy: - content: '' - dest: /etc/dhcpd.hosts.conf - force: no - -- 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: create dhcp file for static ips +# copy: +# content: '' +# dest: /etc/dhcpd.hosts{{ item.name }}.conf +# force: no +# with_items: "{{ sites }}" +# +#- 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: -- cgit v1.2.3-54-g00ecf