[just] lint targets
This commit is contained in:
parent
04ef41365c
commit
2200dba8a5
1 changed files with 12 additions and 1 deletions
13
justfile
13
justfile
|
@ -1,3 +1,6 @@
|
||||||
|
# use with https://github.com/casey/just
|
||||||
|
|
||||||
|
|
||||||
default: check
|
default: check
|
||||||
default_playbook := "playbooks/default.yaml"
|
default_playbook := "playbooks/default.yaml"
|
||||||
default_inventory := "./hosts.yaml"
|
default_inventory := "./hosts.yaml"
|
||||||
|
@ -9,5 +12,13 @@ deps:
|
||||||
check playbook=default_playbook inventory=default_inventory:
|
check playbook=default_playbook inventory=default_inventory:
|
||||||
ansible-playbook {{playbook}} --inventory={{inventory}} --check
|
ansible-playbook {{playbook}} --inventory={{inventory}} --check
|
||||||
|
|
||||||
lint:
|
deploy:
|
||||||
|
# call ansible-playbook WITHOUT "--check"
|
||||||
|
|
||||||
|
lint: lint_vagrant lint_ansible
|
||||||
|
|
||||||
|
lint_vagrant:
|
||||||
vagrant validate
|
vagrant validate
|
||||||
|
|
||||||
|
lint_ansible:
|
||||||
|
ansible-lint --profile=production
|
||||||
|
|
Loading…
Add table
Reference in a new issue