#!/bin/bash #Create git directory if it doesn't exist if [ ! -d ~/git ] then mkdir -p ~/git fi #Clone ansible-playbook repo if [ ! -d ~/git/ansible-fmb ] then git clone deploy:/tombstones/ansible-fmb.git ~/git/ansible-fmb #Pull most recent updates ansible-playbook repo elif [ -d ~/git/ansible-fmb ] then cd ~/git/ansible-fmb && git pull fi