From e3ace4b9a102dc9a7f7cc9a00aae47e85bd350b4 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sat, 22 Apr 2023 21:47:16 +0200 Subject: fixup --- shell-scripts/ansiblelint | 2 ++ shell-scripts/compile | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 shell-scripts/ansiblelint create mode 100644 shell-scripts/compile (limited to 'shell-scripts') 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 -- cgit v1.2.3