aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles
diff options
context:
space:
mode:
Diffstat (limited to 'resources/ansible_roles')
-rw-r--r--resources/ansible_roles/qtip/tasks/setup-local.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/resources/ansible_roles/qtip/tasks/setup-local.yml b/resources/ansible_roles/qtip/tasks/setup-local.yml
index f5f83278..a177d520 100644
--- a/resources/ansible_roles/qtip/tasks/setup-local.yml
+++ b/resources/ansible_roles/qtip/tasks/setup-local.yml
@@ -9,6 +9,20 @@
---
+- name: checking status of ssh_auth_sock
+ shell: echo $SSH_AUTH_SOCK
+ register: sock_status
+ ignore_errors: yes
+
+- name: checking status of ssh_agent_pid
+ shell: pidof ssh-agent
+ register: pid_status
+ ignore_errors: yes
+
+- fail:
+ msg: "ssh-agent is required to execute QTIP. Use 'eval $(ssh-agent)' to start it"
+ when: sock_status.stdout == '' or pid_status.stdout == ''
+
- name: formatting directory name for current run
set_fact:
pod_results: "{{ pod_name }}-{{ lookup('pipe', 'date +%Y%m%d-%H%M') }}"