Add database configuration task for Kea in Deployer tasks

This commit is contained in:
Christer Warén
2025-08-16 13:45:18 +03:00
parent 79c6ee8af8
commit 41008ed852

View File

@@ -205,7 +205,7 @@
- kea
state: latest
- name: "Deployer - Kea - Configure"
- name: "Deployer - Kea - Configure - DHCP4"
ansible.builtin.template:
src: './files/kea/kea-dhcp4.conf'
dest: '/etc/kea/kea-dhcp4.conf'
@@ -214,6 +214,13 @@
- kea
- dhcp
- name: "Deployer - Kea - Configure - Database"
ansible.builtin.command:
cmd: "kea-admin db-init mysql -h 127.0.0.1 -n {{ config.mariadb.users['kea'].database }} -u {{ config.mariadb.users['kea'].username }} -p {{ config.mariadb.users['kea'].password }}"
tags:
- kea
- dhcp
- name: "Deployer : Kea : Restart"
ansible.builtin.systemd_service:
name: kea-dhcp4-server