Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mysql client commands to connect to remote instances #269

Merged
merged 1 commit into from
Feb 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@
# Check whether pipeline is registered and dashboard user exists
- name: Check Dashboard SS url
become: "yes"
command: mysql {{ archivematica_src_am_db_name }} -Ns -e "select * from DashboardSettings where name='storage_service_url'"
command: >
mysql --user="{{ archivematica_src_am_db_user }}"
--password="{{ archivematica_src_am_db_password }}"
--host="{{ archivematica_src_am_db_host }}"
"{{ archivematica_src_am_db_name }}"
--batch --skip-column-names
--execute="select * from DashboardSettings where name='storage_service_url';"
register: dashboard_ss_url

- debug:
Expand All @@ -92,7 +98,13 @@

- name: Check Dashboard user
become: "yes"
command: mysql {{ archivematica_src_am_db_name }} -Ns -e "select * from auth_user where username='{{ archivematica_src_configure_am_user }}'"
command: >
mysql --user="{{ archivematica_src_am_db_user }}"
--password="{{ archivematica_src_am_db_password }}"
--host="{{ archivematica_src_am_db_host }}"
"{{ archivematica_src_am_db_name }}"
--batch --skip-column-names
--execute="select * from auth_user where username='{{ archivematica_src_configure_am_user }}';"
register: dashboard_user

- debug:
Expand Down