diff --git a/update.sh b/update.sh index 5fef19b..18c3f01 100755 --- a/update.sh +++ b/update.sh @@ -1,4 +1,9 @@ #!/bin/bash -ansible-playbook --ask-become-pass dotfiles.yml -i hosts \ +TAGS='' +if [ ! -z $1 ]; then + TAGS="--tags=$1" +fi + +ansible-playbook --ask-become-pass dotfiles.yml -i hosts $TAGS \ || sudo ansible-galaxy install -r requirements.txt --ignore-errors