Restructuring for new backup solution

This commit is contained in:
2025-07-16 19:09:31 +02:00
parent dea2669de2
commit 169493179e
38 changed files with 133 additions and 91 deletions

View File

@@ -12,7 +12,7 @@
- name: Add /var/www/discourse to Git safe.directory
command: >
docker exec {{ applications['web-app-discourse'].docker.service.discourse.name }} \
docker exec {{ applications['web-app-discourse'].docker.services.discourse.name }} \
git config --global --add safe.directory /var/www/discourse
args:
chdir: "{{ docker_compose.directories.instance }}"
@@ -20,7 +20,7 @@
- name: Revoke old WP Discourse API keys via Rails
command: >
docker exec {{ applications['web-app-discourse'].docker.service.discourse.name }} bash -lc "\
docker exec {{ applications['web-app-discourse'].docker.services.discourse.name }} bash -lc "\
cd /var/www/discourse && \
script/rails runner \"\
ApiKey.where(\
@@ -36,7 +36,7 @@
- name: Generate new WP Discourse API key via Rake task
command: >
docker exec {{ applications['web-app-discourse'].docker.service.discourse.name }} bash -lc "\
docker exec {{ applications['web-app-discourse'].docker.services.discourse.name }} bash -lc "\
cd /var/www/discourse && \
bin/rake api_key:create_master['WP Discourse Integration']\
"

View File

@@ -7,4 +7,4 @@ wordpress_docker_html_path: "/var/www/html"
wordpress_version: "{{ applications | get_app_conf(application_id, 'docker.services.wordpress.version', True) }}"
wordpress_image: "{{ applications | get_app_conf(application_id, 'docker.services.wordpress.image', True) }}"
wordpress_name: "{{ applications | get_app_conf(application_id, 'docker.services.wordpress.name', True) }}"
wordpress_volume: "{{ applications | get_app_conf(application_id, 'docker.services.volumes.data', True) }}"
wordpress_volume: "{{ applications | get_app_conf(application_id, 'docker.volumes.data', True) }}"