From dfd25470a10b757c8676d07c00c05b7cf76ffd61 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sun, 27 Oct 2019 22:16:10 -0500 Subject: [PATCH] revisons --- iiab-install | 3 ++- iiab-network | 4 ++-- runrole | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/iiab-install b/iiab-install index 294f66f4c..bf4f7cb3d 100755 --- a/iiab-install +++ b/iiab-install @@ -151,5 +151,6 @@ echo -e "Running local playbooks....Stage 0 will now run....followed by Stages $ export ANSIBLE_LOG_PATH="$CWD/iiab-install.log" ansible -m setup -i $INVENTORY localhost --connection=local -e ansible_python_interpreter=/usr/bin/python3 | grep python -ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local -e ansible_python_interpreter=/usr/bin/python3 +ansible -m setup -i $INVENTORY localhost --connection=local -e ansible_python_interpreter=/usr/bin/python3 >> /dev/null +ansible-playbook -i $INVENTORY $PLAYBOOK ${ARGS} --connection=local -e ansible_python_interpreter=/usr/bin/python3 echo -e "./iiab-install $* COMPLETED IN $CWD\n\n" diff --git a/iiab-network b/iiab-network index d473e2053..aabcc8578 100755 --- a/iiab-network +++ b/iiab-network @@ -25,8 +25,8 @@ fi echo "Ansible will now run iiab-network.yml -- log file is iiab-network.log" Start=`date` -ansible -m setup -i $INVENTORY localhost --connection=local -e ansible_python_interpreter=/usr/bin/python3 | grep python -ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local -e ansible_python_interpreter=/usr/bin/python3 +ansible -m setup -i ansible_hosts localhost --connection=local -e ansible_python_interpreter=/usr/bin/python3 | grep python +ansible-playbook -i ansible_hosts iiab-network.yml --connection=local -e ansible_python_interpreter=/usr/bin/python3 End=`date` diff --git a/runrole b/runrole index 203694d30..3e75c87bc 100755 --- a/runrole +++ b/runrole @@ -34,4 +34,4 @@ if [[ $# -eq 0 ]] ; then fi ansible -m setup -i $INVENTORY localhost --connection=local -e ansible_python_interpreter=/usr/bin/python3 | grep python -ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local -e ansible_python_interpreter=/usr/bin/python3 +ansible-playbook -i $INVENTORY $PLAYBOOK ${ARGS} --connection=local -e "role_to_run=$1" -e ansible_python_interpreter=/usr/bin/python3