Created
August 1, 2017 03:48
-
-
Save gauravve/1d399576f7a38c7c1adfa000005a20cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GLOBAL_ENV_VARS=$(cat ${WORKSPACE}/conf/aws.${AWS_CONF} | grep =) | |
#Remove any comments from GLOBAL_ENV_VARS | |
GLOBAL_ENV_VARS=$(echo "$GLOBAL_ENV_VARS" | sed 's/#.*//g') | |
#To override any values in GLOBAL_ENV_VARS | |
GLOBAL_ENV_VARS=$(echo "$GLOBAL_ENV_VARS" | sed "s/key_name=.*/key_name=${NONPROD_KEY_NAME}/g") | |
ansible-playbook -vvv ansible/axway_cf.yml --extra-vars " | |
$GLOBAL_ENV_VARS | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment