format justfile, safely integrate agru
This commit is contained in:
parent
d5b1c3fb84
commit
9e3069277d
1 changed files with 15 additions and 9 deletions
6
justfile
6
justfile
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue