mariadb.yml aktualisiert
This commit is contained in:
parent
03d47c9bea
commit
2555bc402e
48
mariadb.yml
48
mariadb.yml
@ -193,30 +193,30 @@
|
|||||||
wait_for:
|
wait_for:
|
||||||
path: /home/docker/mariadb.{{inventory_hostname}}/db-data/ibdata1
|
path: /home/docker/mariadb.{{inventory_hostname}}/db-data/ibdata1
|
||||||
|
|
||||||
- name: /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.sh
|
#- name: /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.sh
|
||||||
blockinfile:
|
# blockinfile:
|
||||||
path: /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.sh
|
# path: /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.sh
|
||||||
mode: "0500"
|
# mode: "0500"
|
||||||
owner: root
|
# owner: root
|
||||||
group: root
|
# group: root
|
||||||
create: yes
|
# create: yes
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
# marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||||
block: |
|
# block: |
|
||||||
cd /home/docker/mariadb.{{inventory_hostname}}
|
# cd /home/docker/mariadb.{{inventory_hostname}}
|
||||||
until wget -t1 --timeout=15 https://mariadb.{{inventory_hostname}} >/dev/null 2>&1
|
# until wget -t1 --timeout=15 https://mariadb.{{inventory_hostname}} >/dev/null 2>&1
|
||||||
do
|
# do
|
||||||
sleep 5
|
# sleep 5
|
||||||
done
|
# done
|
||||||
# [ ...]
|
# # [ ...]
|
||||||
backup: yes
|
# backup: yes
|
||||||
validate: /bin/bash -n %s
|
# validate: /bin/bash -n %s
|
||||||
notify: run mariadb.init
|
# notify: run mariadb.init
|
||||||
|
#
|
||||||
- name: Run mariadb.init after install
|
#- name: Run mariadb.init after install
|
||||||
ansible.builtin.shell: bash /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.sh
|
# ansible.builtin.shell: bash /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.sh
|
||||||
args:
|
# args:
|
||||||
chdir: /home/docker/mariadb.{{inventory_hostname}}
|
# chdir: /home/docker/mariadb.{{inventory_hostname}}
|
||||||
creates: /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.log
|
# creates: /home/docker/mariadb.{{inventory_hostname}}/mariadb.init.log
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user