scripts v1
This commit is contained in:
18
ansible/lint.sh
Executable file
18
ansible/lint.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Author: Landon Dyck
|
||||
# This runs yamllint and ansible-lint on the ansible scripts, then ansible-playbook's syntax
|
||||
# checker.
|
||||
# Usage: $ ./lint.sh
|
||||
|
||||
set -e
|
||||
|
||||
PATH=${PWD}/env/bin:${PATH}
|
||||
|
||||
yamllint -sc ansible/yamllint.yml ansible
|
||||
|
||||
cd ansible/
|
||||
|
||||
ansible-lint -p
|
||||
|
||||
ansible-playbook main.yml --syntax-check
|
||||
Reference in New Issue
Block a user