yavdr-ansible/install-yavdr.sh
Alexander Grothe 58119a9651 cleanup
2017-03-13 15:27:21 +01:00

17 lines
424 B
Bash
Executable File

#!/bin/bash
if (( $EUID != 0 )); then
echo "This script must be run using sudo or as root"
exit
fi
apt-get -y install software-properties-common
# Add repository for ansible
add-apt-repository -y ppa:ansible/ansible
# update packages
apt-get update
# install required packages
apt-get -y install ansible
# TODO: run ansible on local host
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local