You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
# This shell script is based on mss redmine setup repository, big thanks for that. (https://github.com/mss/vagrant-ansible-redmine)
config.vm.provision "shell" do |shell|
shell.args = "setup/vagrant.yml"
shell.inline = <<-end
#!/bin/bash
ppa=
while getopts p OPTNAME; do
case "$OPTNAME" in
p)
ppa=ppa:rquillo/ansible
;;
*)
exit 1
;;
esac
done
shift $((OPTIND - 1))
playbook=${1:-playbook.yml}
set -ex
sed -i -e "/ $(lsb_release -cs)-backports /s/^# *//" /etc/apt/sources.list
if [ -n "$ppa" ]; then
if ! dpkg -s python-software-properties 2>/dev/null | grep -q '^Status:.* installed'; then
apt-get update
apt-get install -y python-software-properties
fi
apt-add-repository -y $ppa
fi
apt-get update
apt-get install -y ansible
ansible-playbook /vagrant/$playbook -v -c local -i /etc/hostname