You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/08/14 20:31:50 UTC

[airavata] branch staging updated: Give django db user localhost access

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/staging by this push:
     new 679a4b9  Give django db user localhost access
679a4b9 is described below

commit 679a4b9a05742b613512e737797a5b2fa6f4268d
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Wed Aug 14 16:17:03 2019 -0400

    Give django db user localhost access
---
 dev-tools/ansible/roles/database/tasks/django.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-tools/ansible/roles/database/tasks/django.yml b/dev-tools/ansible/roles/database/tasks/django.yml
index 168c854..f671c7a 100644
--- a/dev-tools/ansible/roles/database/tasks/django.yml
+++ b/dev-tools/ansible/roles/database/tasks/django.yml
@@ -36,6 +36,9 @@
   with_items:
   - "{{ groups['django'] }}"
 
+- name: give access to {{ django_db_username }} from localhost
+  mysql_user: name="{{ django_db_username }}" password="{{ django_db_password }}" host="localhost"
+
 - name: create new user {{ django_db_username }} with all privileges on all django databases
   mysql_user: name="{{ django_db_username }}"
               password="{{ django_db_password }}"