44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
---
|
|
|
|
- name: Preparation
|
|
ansible.builtin.shell: curl -1sLf 'https://dl.cloudsmith.io/public/isc/kea-2-4/setup.deb.sh' | sudo -E bash
|
|
|
|
- name: Update apt
|
|
ansible.builtin.apt:
|
|
update_cache: yes
|
|
|
|
#- name: Installation paquet isc-kea-common
|
|
# ansible.builtin.apt:
|
|
# deb: isc-kea-common
|
|
# state: present
|
|
|
|
- name: Installation isc-kea-dhcp4
|
|
ansible.builtin.apt:
|
|
name: isc-kea-dhcp4-server
|
|
state: present
|
|
|
|
- name: Installation isc-kea-ctrl-agent
|
|
ansible.builtin.apt:
|
|
name: isc-kea-ctrl-agent
|
|
state: present
|
|
|
|
- name: Installation isc-kea-hooks
|
|
ansible.builtin.apt:
|
|
name: isc-kea-hooks
|
|
state: present
|
|
|
|
- name: Generation ---- du fichier de configuration kea-ctrl-agent
|
|
ansible.builtin.template:
|
|
src: kea-ctrl-agent.conf.j2
|
|
dest: /etc/kea/kea-ctrl-agent.conf
|
|
notify:
|
|
- Restart isc-kea-ctrl-agent
|
|
|
|
- name: Generation du fichier de configuration kea-dhcp4.conf
|
|
ansible.builtin.template:
|
|
src: kea-dhcp4.conf.j2
|
|
dest: /etc/kea/kea-dhcp4.conf
|
|
notify:
|
|
- Restart isc-kea-dhcp4-server
|
|
|