summaryrefslogtreecommitdiff
path: root/roles/install_dhcp/tasks/main.yml
blob: 4bcf8450e8b4f1bb9e02aff0b8ede6c0277cfae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
- name: install dhcp
  pacman:
      name: dhcp
      state: present

#- 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:
      src: dhcpd.conf.j2
      dest: /etc/dhcpd.conf
  notify: restart dhcpd4