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

commit 73f34cb8d8eb4e93a94f443db081d9d647bac04c
Author: Marcus Christie <machr...@iu.edu>
AuthorDate: Wed Oct 2 11:05:58 2019 -0400

    Fix installing data store ssh key for Django deploys
---
 dev-tools/ansible/roles/django/tasks/main.yml | 7 +++++++
 dev-tools/ansible/roles/httpd/tasks/main.yml  | 7 -------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dev-tools/ansible/roles/django/tasks/main.yml 
b/dev-tools/ansible/roles/django/tasks/main.yml
index 3a6b86f..0cd19b0 100644
--- a/dev-tools/ansible/roles/django/tasks/main.yml
+++ b/dev-tools/ansible/roles/django/tasks/main.yml
@@ -157,3 +157,10 @@
   notify:
     - restart httpd
   when: vhost_ssl
+
+- name: copy user's SSH key for the gateway data store
+  authorized_key:
+    user: "{{user}}"
+    key: "{{ gateway_data_store_ssh_public_key }}"
+  become: yes
+  when: gateway_data_store_ssh_public_key != ""
diff --git a/dev-tools/ansible/roles/httpd/tasks/main.yml 
b/dev-tools/ansible/roles/httpd/tasks/main.yml
index 469c105..85bc93a 100644
--- a/dev-tools/ansible/roles/httpd/tasks/main.yml
+++ b/dev-tools/ansible/roles/httpd/tasks/main.yml
@@ -55,13 +55,6 @@
   become: yes
   when: ansible_os_family == "RedHat"
 
-- name: copy pga user's SSH key for the gateway data store
-  authorized_key:
-    user: "{{user}}"
-    key: "{{ gateway_data_store_ssh_public_key }}"
-  become: yes
-  when: gateway_data_store_ssh_public_key != ""
-
 # Firewall settings
 - name: Enable https and http service on public zone
   firewalld: service="{{ item }}" permanent=true state=enabled zone=public 
immediate=True

Reply via email to