Added friendica draft and solved mariadb bug

This commit is contained in:
2025-01-10 17:42:44 +01:00
parent 5aedb71d1c
commit 0fe33fc9e3
7 changed files with 70 additions and 6 deletions

View File

@@ -48,12 +48,6 @@
login_host: 127.0.0.1
login_port: 3306
- name: Grant database privileges
ansible.builtin.shell:
cmd: "docker exec central-mariadb mariadb -u root -p{{ central_mariadb_root_password }} -e \"GRANT ALL PRIVILEGES ON {{database_name}}.* TO '{{database_username}}'@'%';\""
args:
executable: /bin/bash
- name: "Create database user: {{ database_username }}"
mysql_user:
name: "{{database_username}}"
@@ -66,6 +60,12 @@
login_host: 127.0.0.1
login_port: 3306
- name: Grant database privileges
ansible.builtin.shell:
cmd: "docker exec central-mariadb mariadb -u root -p{{ central_mariadb_root_password }} -e \"GRANT ALL PRIVILEGES ON {{database_name}}.* TO '{{database_username}}'@'%';\""
args:
executable: /bin/bash
- name: run the docker_mariadb tasks once
set_fact:
run_once_docker_mariadb: true