yavdr-ansible/install-yavdr.sh
Alexander Grothe 036fd26287 Revert "Use ansible 2.4.1 from ubuntu repositories"
the needed package is still in staging...

This reverts commit 2b749ba457.
2017-12-16 19:34:33 +01:00

17 lines
474 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
# Add repository for ansible
add-apt-repository -y ppa:yavdr/experimental-main
# update packages
apt-get update
# install required packages
apt-get -y install --no-install-recommends ansible
# TODO: run ansible on local host
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags=install