6 # -o pipefail: Fail on errors in scripts this calls, give stacktrace
9 # Install required packages
11 source deb_build/bin/activate
12 PYTHON="deb_build/bin/python"
13 $PYTHON -m pip install --upgrade pip
15 # Wait for any background apt processes to finish
16 # There seems to be a backgroud apt process that locks /var/lib/dpkg/lock
17 # and causes our apt commands to fail.
18 while pgrep apt > /dev/null; do sleep 1; done
20 # Install latest ansible
21 sudo apt-add-repository ppa:ansible/ansible
23 sudo apt-get install -y ansible
25 git clone https://github.com/dfarrell07/ansible-opendaylight.git
26 cd ansible-opendaylight
27 sudo ansible-galaxy install -r requirements.yml
28 sudo ansible-playbook -i "localhost," -c local examples/deb_repo_install_playbook.yml