mariadb.yml aktualisiert

This commit is contained in:
olli 2024-05-26 22:32:59 +02:00
parent 2555bc402e
commit 9ffb8ceb2c

View File

@ -104,6 +104,7 @@
group: docker
marker: "# {mark} ANSIBLE MANAGED BLOCK"
block: |
[mariadbd]
ssl=1
ssl-ca=/etc/mysql/ca-cert.pem
ssl-cert=/etc/mysql/server-cert.pem
@ -222,21 +223,21 @@
handlers:
- name: run genpw.sh
ansible.builtin.shell: ./genpw.sh
args:
chdir: /home/docker/mariadb.{{inventory_hostname}}
notify: Restart mariadb
- name: run genssl.sh
ansible.builtin.shell: ./genssl.sh
args:
chdir: /home/docker/mariadb.{{inventory_hostname}}
notify: Restart mariadb
#- name: run genpw.sh
# ansible.builtin.shell: ./genpw.sh
# args:
# chdir: /home/docker/mariadb.{{inventory_hostname}}
# notify: Restart mariadb
#
# - name: run genssl.sh
# ansible.builtin.shell: ./genssl.sh
# args:
# chdir: /home/docker/mariadb.{{inventory_hostname}}
# notify: Restart mariadb
- name: run mariadb.init
ansible.builtin.shell: bash /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.sh
#- name: run mariadb.init
# ansible.builtin.shell: bash /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.sh
- name: Restart mariadb
ansible.builtin.shell: docker-compose up -d --force-recreate