#!/bin/bash | |
# Install ansible and ansible lint, don't want these in the project reqs | |
sudo apt-get install -y ansible ansible-lint | |
cd ${ROOTDIR} | |
# We need the manifest group 'ops' so some extra work required here. | |
git config --global user.email "you@example.com" | |
git config --global user.name "Nobody" | |
repo init --verbose -g 'default,internal,ops' | |
repo sync | |
cd ${ROOTDIR}/ops | |
ansible-lint ansible |