Commit fc2b3c89 authored by zaiken's avatar zaiken 💬 Committed by root

Correction main.yml du DNS

parent b75fd945
- name: Install isc-dhcp-server
apt:
name: isc-dhcp-server
- name: Copy configuration
template:
src: dhcpd.conf.j2
dest: /etc/dhcp/dhcpd.conf
mode: 0644
- name: DHCP failover
template:
src: dhcp-failover.conf.j2
dest: /etc/dhcp/dhcp-failover.conf
mode: 0644
- name: Disable IPV6
template:
src: isc-dhcp-server.j2
dest: /etc/default/isc-dhcp-server
mode: 0644
- name: Install iso8601
apt:
name: python3-iso8601
- name: Get re2o-service for dhcp
git:
repo: https://gitlab.federez.net/re2o/dhcp.git
dest: /usr/local/dhcp
force: yes
- name: Create generated directory
file:
path: /usr/local/dhcp/generated
state: directory
mode: 0755
- name: Configure service
template:
src: config.ini.j2
dest: /usr/local/dhcp/config.ini
mode: 0600
- name: Create crontab
cron:
cron_file: re2o-services
......
......@@ -94,7 +94,7 @@
cron_file: re2o-services
name: Update dns entries
user: root
job: "cd /usr/local/dns/ && /usr/bin/python3 /usr/local/dhcp/main.py > /dev/null 2>&1 && systemctl reload bind9"
job: "cd /usr/local/dns/ && /usr/bin/python3 /usr/local/dns/main.py > /dev/null 2>&1 && systemctl reload bind9"
- name: Restart bind9
service:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment