1 files changed, 10 insertions(+), 0 deletions(-)
M .build.yml
M .build.yml => .build.yml +10 -0
@@ 19,22 19,32 @@ secrets:
tasks:
- setup: |
cd earth-xlii-cc
+
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
+
ln -s ~/.secret_vault .secret_vault
+ # Install ansible collections first, otherwise ansible-lint will fail
+ # https://github.com/ansible/ansible-lint/issues/3636
+ ansible-galaxy collection install -v --pre -r requirements.yml
+
- check: |
cd earth-xlii-cc
+
source venv/bin/activate
+
set +x
ansible-lint
set -x
- ansible: |
cd earth-xlii-cc
+
source venv/bin/activate
+
set +x
ansible-playbook --vault-password-file ~/.secret_vault site.yml
set -x