yavdr-ansible/install-yavdr.sh

17 lines
471 B
Bash
Raw Normal View History

2017-02-19 13:56:47 +01:00
#!/bin/bash
if (( $EUID != 0 )); then
echo "This script must be run using sudo or as root"
exit
fi
2017-02-28 16:31:43 +01:00
apt-get -y install software-properties-common
2017-02-19 13:56:47 +01:00
# Add repository for ansible
add-apt-repository -y ppa:yavdr/experimental-main
2017-02-19 13:56:47 +01:00
# update packages
apt-get update
# install required packages
apt-get -y install --no-install-recommends ansible
2017-03-08 14:48:58 +01:00
# TODO: run ansible on local host
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags=install