From 54d2d2b126897954b5df93412ef7a6397b7fdc16 Mon Sep 17 00:00:00 2001 From: Salt Date: Mon, 23 Mar 2020 04:24:18 -0500 Subject: [PATCH] Add simple bootstrappling to localhost-deploy --- localhost-deploy.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/localhost-deploy.sh b/localhost-deploy.sh index f093c49..3e31412 100755 --- a/localhost-deploy.sh +++ b/localhost-deploy.sh @@ -5,6 +5,11 @@ # # Distributed under terms of the MIT license. # - +set -e +if ! command -v ansible > /dev/null 2>&1; then + printf "Installing Ansible and related packages\n" + sudo apt-get install python3-pip python3-setuptools -y + sudo pip3 install ansible +fi ansible-playbook desktop.yml --ask-vault-pass --ask-become-pass