Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. update-cb () {
  4.         git -C ~/cloudbox fetch && git -C ~/cloudbox pull
  5. }
  6.  
  7. install-tag () {
  8.         UserPath=$PWD
  9.         cd ~/cloudbox && ansible-playbook cloudbox.yml --tags $1
  10.         cd $UserPath
  11. }
  12.  
  13. if [ $1 = "update" ]
  14. then
  15.         update-cb
  16. elif [ $1 = "install" ]
  17. then
  18.         install-tag $2
  19. else
  20.         echo "Unknown Command"
  21. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement