Update sync.sh
This commit is contained in:
parent
f1d3ef2616
commit
e1d80ce73f
11
sync.sh
11
sync.sh
@ -1,5 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/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:
|
# Could also sync vim:
|
||||||
# ansible-playbook -i hosts main.yml --tags default,vim
|
# ansible-playbook -i hosts main.yml --tags default,vim
|
||||||
# vim +'call Initialize()' +'qa'
|
# vim +'call Initialize()' +'qa'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user