We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ec3754 commit ef05c59Copy full SHA for ef05c59
ansible/db-setup.yml
@@ -65,11 +65,12 @@
65
- name: Verify database initialization
66
run_once: true
67
shell: |
68
- mysql -h {{ db_host }} -u{{ db_user }} -p'{{ db_password }}' {{ db_name }} -e "SHOW TABLES;"
+ mysql -h "{{ db_host }}" -u"{{ db_user }}" -p"{{ db_password }}" "{{ db_name }}" -e "SHOW TABLES;"
69
register: db_check
70
changed_when: false
71
when: db_load_result.rc == 0
72
73
+
74
- name: Fail if database initialization failed
75
76
fail:
0 commit comments