format justfile, safely integrate agru

This commit is contained in:
Aine 2023-03-25 15:40:07 +02:00
parent d5b1c3fb84
commit 9e3069277d
No known key found for this signature in database
GPG key ID: 34969C908CCA2804

View file

@ -4,8 +4,14 @@ default:
# Pulls external Ansible roles # Pulls external Ansible roles
roles: roles:
#!/usr/bin/env bash
set -euo pipefail
if [ -x "$(command -v agru)" ]; then
agru
else
rm -rf roles/galaxy rm -rf roles/galaxy
ansible-galaxy install -r requirements.yml -p roles/galaxy/ --force ansible-galaxy install -r requirements.yml -p roles/galaxy/ --force
fi
# Runs ansible-lint against all roles in the playbook # Runs ansible-lint against all roles in the playbook
lint: lint: