feat: add PHP ini management system and update infrastructure configs
- Add PHP ini management classes (Access, IniDirective, IniKey, PhpIni) - Update deployment configurations (Wireguard, Traefik, Monitoring) - Add DNS stack and Ansible role - Add deployment debugging playbooks - Update framework components (FilePath, RedisConnectionPool) - Update .gitignore and documentation
This commit is contained in:
9
deployment/ansible/roles/dns/defaults/main.yml
Normal file
9
deployment/ansible/roles/dns/defaults/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
dns_stack_path: "{{ stacks_base_path }}/dns"
|
||||
dns_corefile_template: "{{ role_path }}/../../templates/dns-Corefile.j2"
|
||||
dns_forwarders:
|
||||
- 1.1.1.1
|
||||
- 8.8.8.8
|
||||
dns_records:
|
||||
- host: "grafana.{{ app_domain }}"
|
||||
address: "{{ wireguard_server_ip_default | default('10.8.0.1') }}"
|
||||
33
deployment/ansible/roles/dns/tasks/main.yml
Normal file
33
deployment/ansible/roles/dns/tasks/main.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: Ensure DNS stack directory exists
|
||||
file:
|
||||
path: "{{ dns_stack_path }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
tags:
|
||||
- dns
|
||||
|
||||
- name: Render CoreDNS configuration
|
||||
template:
|
||||
src: "{{ dns_corefile_template }}"
|
||||
dest: "{{ dns_stack_path }}/Corefile"
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ ansible_user }}"
|
||||
mode: '0644'
|
||||
tags:
|
||||
- dns
|
||||
|
||||
- name: Deploy DNS stack
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ dns_stack_path }}"
|
||||
state: present
|
||||
pull: always
|
||||
register: dns_compose_result
|
||||
tags:
|
||||
- dns
|
||||
|
||||
- name: Record DNS deployment facts
|
||||
set_fact:
|
||||
dns_stack_changed: "{{ dns_compose_result.changed | default(false) }}"
|
||||
tags:
|
||||
- dns
|
||||
Reference in New Issue
Block a user