mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-09-01 07:59:31 +00:00
Add database configuration task for Kea in Deployer tasks
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user