Commit 167552f7 authored by ale's avatar ale

Merge branch 'mariadb-init-sentinel' into 'master'

mariadb: write data directory sentinel file

See merge request !75
parents 17511eed 1db4302d
Pipeline #5299 failed with stages
in 1 minute and 17 seconds
......@@ -104,9 +104,9 @@
register: mariadb_systemd_unit
- name: Bootstrap data directory
command: "/usr/bin/mysql_install_db --defaults-file={{ mariadb_config }} --datadir={{ mariadb_data_dir }} --user=mysql --auth-root-authentication-method=socket {{ float_debian_dist == 'stretch' and '--skip-auth-anonymous-user' or '' }}"
shell: "/usr/bin/mysql_install_db --defaults-file={{ mariadb_config }} --datadir={{ mariadb_data_dir }} --user=mysql --auth-root-authentication-method=socket {{ float_debian_dist == 'stretch' and '--skip-auth-anonymous-user' or '' }} && date > {{ mariadb_data_dir }}/.float-bootstrap-ok"
args:
creates: "{{ mariadb_data_dir }}"
creates: "{{ mariadb_data_dir }}/.float-bootstrap-ok"
# Explicitly start the service after bootstrapping data directory
# instead of using a restart handler, so that the database is available
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment