Update sync.sh

This commit is contained in:
Austen Adler 2018-07-04 14:03:35 -04:00
parent f1d3ef2616
commit e1d80ce73f

11
sync.sh
View File

@ -1,5 +1,14 @@
#!/bin/bash
ansible-playbook -i 'localhost,' main.yml --tags default
\cd "$(dirname $0)"
if [ -z "$1" ]; then
echo "Usage:"
echo "$0 TAG1,TAG2"
echo "Available tags:"
echo "$(\ls roles | tr '\n' ' ')"
echo "Example: $0 default,vim"
exit 1
fi
ansible-playbook -i 'localhost,' main.yml --tags $1
# Could also sync vim:
# ansible-playbook -i hosts main.yml --tags default,vim
# vim +'call Initialize()' +'qa'