webgate check if db tables exist
This commit is contained in:
parent
3ac1e15ed5
commit
99fed77ba7
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue