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