diff options
Diffstat (limited to 'shell-scripts')
| -rw-r--r-- | shell-scripts/ansiblelint | 2 | ||||
| -rw-r--r-- | shell-scripts/compile | 22 |
2 files changed, 24 insertions, 0 deletions
diff --git a/shell-scripts/ansiblelint b/shell-scripts/ansiblelint new file mode 100644 index 0000000..759de49 --- /dev/null +++ b/shell-scripts/ansiblelint @@ -0,0 +1,2 @@ +#!@bash@/bin/bash +ansible-lint --profile production --write=all -q --nocolor diff --git a/shell-scripts/compile b/shell-scripts/compile new file mode 100644 index 0000000..61ce9a9 --- /dev/null +++ b/shell-scripts/compile @@ -0,0 +1,22 @@ +#!@bash@/bin/bash +echo " Compiliiing ${@}" + +error () { + echo "$1" + exit 1 +} + +case "${@}" in + ansible-lint*) + echo " \-> ansible-lint" + shift + ansible-lint --profile production --write=all -qq --nocolor ${@} + ;; + awx*) + echo " \-> awx" + awx "$@" | filter-ansi + ;; + *) + echo "Nope. Not compiling that. ARGS: ${@}" + ;; +esac |
