Skip to content

Commit

Permalink
added --skip-tags parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossignolskier committed Apr 5, 2022
1 parent 1bb8fbf commit 27330b0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install/install_validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ install_validator () {
TAGS="--tags {$tags}"
fi

ansible-playbook --connection=local --inventory ./inventory/$inventory --limit localhost playbooks/pb_install_validator.yaml --extra-vars "@/etc/sv_manager/sv_manager.conf" $SOLANA_VERSION $EXTRA_INSTALL_VARS $TAGS
if [ ! -z $skip_tags ]
then
SKIP_TAGS="--skip-tags {$skip_tags}"
fi

ansible-playbook --connection=local --inventory ./inventory/$inventory --limit localhost playbooks/pb_install_validator.yaml --extra-vars "@/etc/sv_manager/sv_manager.conf" $SOLANA_VERSION $EXTRA_INSTALL_VARS $TAGS $SKIP_TAGS

echo "### 'Uninstall ansible ###"

Expand Down Expand Up @@ -125,7 +130,7 @@ echo "installing sv manager version $sv_manager_version"
echo "This script will bootstrap a Solana validator node. Proceed?"
select yn in "Yes" "No"; do
case $yn in
Yes ) install_validator "$sv_manager_version" "$extra_vars" "$solana_version" "$tags"; break;;
Yes ) install_validator "$sv_manager_version" "$extra_vars" "$solana_version" "$tags" "$skip_tags"; break;;
No ) echo "Aborting install. No changes will be made."; exit;;
esac
done

0 comments on commit 27330b0

Please sign in to comment.