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