mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
A shared 'resolve_' prefix on two sibling task files trips the prefix-grouped-files lint (a delimiter-bounded prefix is a folder in disguise). Move both into utils/resolve/ and drop the prefix: resolve_config_host.yml -> resolve/config_host.yml, resolve_host_cid.yml -> resolve/host_cid.yml. Update the include paths in 02_manager_ops, 03_install_path, 05_patch_database, 06_patch_trusted_hosts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
---
|
|
- name: "🧭 Resolve host path to config.ini.php"
|
|
ansible.builtin.include_tasks: utils/resolve/config_host.yml
|
|
|
|
- name: "🔄 Update DB host"
|
|
ansible.builtin.command:
|
|
argv:
|
|
- sed
|
|
- -i
|
|
- "s/^host *=.*/host = {{ lookup('database', application_id, 'host') | sed_escape('/') }}/"
|
|
- "{{ MATOMO_CONFIG_HOST }}"
|
|
|
|
- name: "🔄 Update DB name"
|
|
ansible.builtin.command:
|
|
argv:
|
|
- sed
|
|
- -i
|
|
- "s/^dbname *=.*/dbname = {{ lookup('database', application_id, 'name') | sed_escape('/') }}/"
|
|
- "{{ MATOMO_CONFIG_HOST }}"
|
|
|
|
- name: "🔄 Update DB user"
|
|
ansible.builtin.command:
|
|
argv:
|
|
- sed
|
|
- -i
|
|
- "s/^username *=.*/username = {{ lookup('database', application_id, 'username') | sed_escape('/') }}/"
|
|
- "{{ MATOMO_CONFIG_HOST }}"
|
|
|
|
- name: "🔄 Update DB password"
|
|
ansible.builtin.shell:
|
|
cmd: sed -i "s/^password *=.*/password = ${PATCH_PASSWORD}/" {{ MATOMO_CONFIG_HOST | quote }}
|
|
environment:
|
|
PATCH_PASSWORD: "{{ lookup('database', application_id, 'password') | sed_escape('/') }}"
|
|
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|