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

@@ -25,6 +25,6 @@
# @todo Remove if this works fine in the future.
#- name: Grant database privileges
# ansible.builtin.shell:
# cmd: "docker exec {{mariadb_hostname }} mariadb -u root -p{{ mariadb_root_pwd }} -e \"GRANT ALL PRIVILEGES ON `{{database_name}}`.* TO '{{database_username}}'@'%';\""
# cmd: "docker exec {{mariadb_name }} mariadb -u root -p{{ mariadb_root_pwd }} -e \"GRANT ALL PRIVILEGES ON `{{database_name}}`.* TO '{{database_username}}'@'%';\""
# args:
# executable: /bin/bash

View File

@@ -8,7 +8,7 @@
- name: install MariaDB
docker_container:
name: "{{ mariadb_hostname }}"
name: "{{ mariadb_name }}"
image: "{{ mariadb_image }}:{{ mariadb_version}}"
detach: yes
env:
@@ -36,9 +36,9 @@
state: present
when: run_once_docker_mariadb is not defined
- name: "Wait until the MariaDB container with hostname '{{ mariadb_hostname }}' is healthy"
- name: "Wait until the MariaDB container with hostname '{{ mariadb_name }}' is healthy"
community.docker.docker_container_info:
name: "{{ mariadb_hostname }}"
name: "{{ mariadb_name }}"
register: db_info
until:
- db_info.containers is defined