vagrant/kea-dhcp-ha/provision/setup-kea.yml
2024-01-10 13:27:33 +01:00

25 lines
581 B
YAML

---
- hosts: all
become: true
tasks:
- name: kea-dhcp4-server et kea-ctrl-agent ...
apt:
name:
- kea-dhcp4-server
- kea-dhcp6-server
- kea-ctrl-agent
state: present
- name: change adresse IP dans /etc/kea/kea-ctrl-agent.conf
ansible.builtin.replace:
path: /etc/kea/kea-ctrl-agent.conf
regexp: '"http-host": "127.0.0.1",'
replace: '"http-host": "{{ srv_ip }}",'
backup: yes
- name: genere ca.cnf dasn /etc/kea-ctrl-agent
fetch:
src: /etc/kea/kea-dhcp4.conf
dest: ./
flat: yes