webgate check if db tables exist

This commit is contained in:
muppeth 2022-05-12 00:43:49 +02:00
parent 3ac1e15ed5
commit 99fed77ba7
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,12 @@
owner: "{{ lacre_webgate_user }}"
group: "{{ lacre_webgate_group }}"
- name: '[Webgate] - Chec if db has tables'
shell:
cmd: "mysql -h {{ rcube_db_hostname }} -u {{ lacre_db_username }} -p{{ lacre_db_password }} {{ lacre_db_name }} -se 'select * from gpgmw_keys;'"
register: webgate_installed
ignore_errors: true
- name: '[Webgate] - Import sql schema'
mysql_db:
state: import