mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-20 23:31:10 +02:00
17 lines
656 B
YAML
17 lines
656 B
YAML
- name: Update DB host
|
|
command: >
|
|
docker exec --user root {{ matomo_name }}
|
|
sed -i "s/^host *=.*/host = {{ database_host }}/" {{ matomo_config }}
|
|
- name: Update DB name
|
|
command: >
|
|
docker exec --user root {{ matomo_name }}
|
|
sed -i "s/^dbname *=.*/dbname = {{ database_name }}/" {{ matomo_config }}
|
|
- name: Update DB user
|
|
command: >
|
|
docker exec --user root {{ matomo_name }}
|
|
sed -i "s/^username *=.*/username = {{ database_username }}/" {{ matomo_config }}
|
|
- name: Update DB password
|
|
command: >
|
|
docker exec --user root {{ matomo_name }}
|
|
sed -i "s/^password *=.*/password = {{ database_password }}/" {{ matomo_config }}
|