From 98d55f77c9cfbcabaca857f529bb252dd7db62a8 Mon Sep 17 00:00:00 2001 From: Sebastian Haderecker Date: Sat, 13 Apr 2019 00:32:12 +0000 Subject: [PATCH] Check if Agent Forwarding is enabled --- cloud/deploy_ansible_otc_t-pot.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cloud/deploy_ansible_otc_t-pot.sh b/cloud/deploy_ansible_otc_t-pot.sh index 93e1fd29..2f082133 100755 --- a/cloud/deploy_ansible_otc_t-pot.sh +++ b/cloud/deploy_ansible_otc_t-pot.sh @@ -20,6 +20,13 @@ if ! hash jq 2>/dev/null; then exit 1 fi +# Check for Agent Forwarding +if ! printenv | grep SSH_AUTH_SOCK; then + echo "Agent forwarding seems to be disabled." + echo "In order to let Ansible do its work, please enable it." + exit 1 +fi + # Import ECS settings source .ecs_settings.sh