- Need to start it manually. Not possible via playbook.
JIRA: QTIP-242
Change-Id: Ief593fe54a900f7aa36890be5317a60bcb65a82e
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
---
+- 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') }}"