Add presubmit script for ansible BUG: 382497100 Bypass-Presubmit-Reason: no presubmits, tested manually Change-Id: I7768faeff570b24af8bf5a13247d89cc517fd888
diff --git a/presubmits/ansible-lint.sh b/presubmits/ansible-lint.sh new file mode 100755 index 0000000..44803fd --- /dev/null +++ b/presubmits/ansible-lint.sh
@@ -0,0 +1,14 @@ +#!/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