From 1c83e72f452a0df311ea35b69e33594815e19172 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Sun, 27 Sep 2015 09:48:34 +0200 Subject: [PATCH] Allow updating dotfiles with tag filters --- update.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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