agent conf

This commit is contained in:
phil
2024-01-10 13:27:33 +01:00
parent 0ab0c2d74c
commit d02c5e36c0
4 changed files with 578 additions and 6 deletions

View File

@@ -10,12 +10,15 @@
- kea-ctrl-agent
state: present
- name: genere ca.cnf dasn /etc/kea-ctrl-agent
fetch:
src: /etc/kea/kea-ctrl-agent.conf
dest: .
- 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-server.conf
dest: ..
src: /etc/kea/kea-dhcp4.conf
dest: ./
flat: yes