mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-09-04 01:23:25 +00:00
Add database configuration task for Kea in Deployer tasks
This commit is contained in:
@@ -205,7 +205,7 @@
|
|||||||
- kea
|
- kea
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: "Deployer - Kea - Configure"
|
- name: "Deployer - Kea - Configure - DHCP4"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: './files/kea/kea-dhcp4.conf'
|
src: './files/kea/kea-dhcp4.conf'
|
||||||
dest: '/etc/kea/kea-dhcp4.conf'
|
dest: '/etc/kea/kea-dhcp4.conf'
|
||||||
@@ -214,6 +214,13 @@
|
|||||||
- kea
|
- kea
|
||||||
- dhcp
|
- 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"
|
- name: "Deployer : Kea : Restart"
|
||||||
ansible.builtin.systemd_service:
|
ansible.builtin.systemd_service:
|
||||||
name: kea-dhcp4-server
|
name: kea-dhcp4-server
|
||||||
|
Reference in New Issue
Block a user