mariadb.yml aktualisiert

This commit is contained in:
olli 2024-05-28 17:27:29 +02:00
parent e4c66f63d7
commit 0738137393

View File

@ -63,6 +63,12 @@
if [ -n "$notinitilized" ] if [ -n "$notinitilized" ]
then then
docker compose up -d mariadb.{{inventory_hostname}} docker compose up -d mariadb.{{inventory_hostname}}
# get sure mariadb is ready with initializing
until [ -s "db-data/mysql_upgrade_info" ]
do
sleep 5
done
sleep 120
else else
docker compose up -d --force-recreate mariadb.{{inventory_hostname}} docker compose up -d --force-recreate mariadb.{{inventory_hostname}}
fi fi
@ -99,7 +105,7 @@
mode: 0444 mode: 0444
owner: root owner: root
group: docker group: docker
marker: "# {mark} ANSIBLE MANAGED BLOCK" marker: "// {mark} ANSIBLE MANAGED BLOCK"
block: | block: |
// IP address / host of your instance // IP address / host of your instance
$cfg['Servers'][$i]['host'] = 'mariadb.{{inventory_hostname}}'; $cfg['Servers'][$i]['host'] = 'mariadb.{{inventory_hostname}}';
@ -179,7 +185,7 @@
external: true external: true
backup: yes backup: yes
#notify: Restart mariadb notify: Restart mariadb
- name: Get letsencrypt cert from traefik - name: Get letsencrypt cert from traefik
ansible.builtin.shell: /usr/local/sbin/autoupdate.d/mariadb-ssl.update ansible.builtin.shell: /usr/local/sbin/autoupdate.d/mariadb-ssl.update
@ -189,8 +195,8 @@
handlers: handlers:
#- name: Restart mariadb - name: Restart mariadb
# ansible.builtin.shell: docker-compose up -d --force-recreate ansible.builtin.shell: docker-compose up -d --force-recreate
# args: args:
# chdir: /home/docker/mariadb.{{inventory_hostname}} chdir: /home/docker/mariadb.{{inventory_hostname}}