ansible/roles/network/tasks/dhcp-file.yml

18 lines
331 B
YAML

---
- name: create directory
file:
path: /srv/dhcp/config
state: directory
- name: Create dhcpd.conf
become: yes
template:
src: etc/dhcpd/dhcpd.conf.j2
dest: /srv/dhcp/config/dhcpd.conf
vars:
network: "{{ lan }}"
- name: restart container
shell:
cmd: docker service update --force --detach dhcp