yavdr-ansible/install-yavdr.sh
Alexander Grothe 4c6c77ccc5 Add python-jmespath
for the json_filter functionality provied by ansible
2018-08-10 10:52:10 +02:00

15 lines
439 B
Bash
Executable File

#!/bin/bash
if (( $EUID != 0 )); then
echo "This script must be run using sudo -H or as root"
exit
fi
apt-get -y install software-properties-common
# update packages
apt-get update
# install required packages
apt-get -y install --no-install-recommends ansible python-jmespath
# TODO: run ansible on local host
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True"