Update install script to be able to run multiple times
This commit is contained in:
parent
ac4d628d0b
commit
e20362ec07
11
install.sh
11
install.sh
@ -14,8 +14,11 @@ fi
|
|||||||
"${SUDO}" apt-add-repository --yes --update ppa:ansible/ansible
|
"${SUDO}" apt-add-repository --yes --update ppa:ansible/ansible
|
||||||
"${SUDO}" apt install -y git ansible
|
"${SUDO}" apt install -y git ansible
|
||||||
|
|
||||||
mkdir -p "${HOME}/src"
|
if [ -d "${HOME}/src/ansible-desktop" ]; then
|
||||||
cd "${HOME}/src"
|
mkdir -p "${HOME}/src"
|
||||||
git clone "$ANSIBLE_REPO"
|
cd "${HOME}/src"
|
||||||
cd ansible-desktop
|
git clone "$ANSIBLE_REPO"
|
||||||
|
fi
|
||||||
|
cd "${HOME}/src/ansible-desktop"
|
||||||
|
git pull
|
||||||
ansible-playbook localhost.yml
|
ansible-playbook localhost.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user