Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- update-cb () {
- git -C ~/cloudbox fetch && git -C ~/cloudbox pull
- }
- install-tag () {
- UserPath=$PWD
- cd ~/cloudbox && ansible-playbook cloudbox.yml --tags $1
- cd $UserPath
- }
- if [ $1 = "update" ]
- then
- update-cb
- elif [ $1 = "install" ]
- then
- install-tag $2
- else
- echo "Unknown Command"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement