Allow updating dotfiles with tag filters
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/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
|
|| sudo ansible-galaxy install -r requirements.txt --ignore-errors
|
||||||
|
|||||||
Reference in New Issue
Block a user