feat: initial commit

This commit is contained in:
Simon Cornet 2025-07-15 15:14:25 +02:00
commit f17a0eeddf
17 changed files with 273 additions and 93 deletions

11
tasks/config.yaml Normal file
View file

@ -0,0 +1,11 @@
---
# configure kea-dhcp4
- name: "config - kea-dhcp4"
ansible.builtin.template:
src: "templates/kea-dhcp4.conf.j2"
dest: "/etc/kea/kea-dhcp4.conf"
owner: "root"
group: "root"
mode: "0644"
notify: "restart kea-dhcp4-server"

7
tasks/install.yaml Normal file
View file

@ -0,0 +1,7 @@
---
# install kea-dhcp4-server
- name: "install kea-dhcp4-server"
ansible.builtin.apt:
name: "kea-dhcp4-server"
when: 'ansible_os_family == "Debian"'

9
tasks/main.yaml Normal file
View file

@ -0,0 +1,9 @@
---
# import install
- name: "install"
ansible.builtin.import_tasks: "install.yaml"
# import config
- name: "config"
ansible.builtin.import_tasks: "config.yaml"