2020-02-14 15:40:31 -06:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# deploy.sh
|
|
|
|
# Copyright (C) 2020 Vintage Salt <rehashedsalt@cock.li>
|
|
|
|
#
|
|
|
|
# Distributed under terms of the MIT license.
|
|
|
|
#
|
2020-03-23 04:24:18 -05:00
|
|
|
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
|
2020-05-15 10:27:58 -05:00
|
|
|
ansible-playbook desktop.yml --ask-vault-pass --ask-become-pass "$@"
|
2020-02-14 15:40:31 -06:00
|
|
|
|