summaryrefslogtreecommitdiff
path: root/shell-scripts
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-04-22 21:47:16 +0200
committerMike Vink <mike1994vink@gmail.com>2023-04-22 21:47:16 +0200
commite3ace4b9a102dc9a7f7cc9a00aae47e85bd350b4 (patch)
tree03f0f9f5d6e121a7ff77e0fea2e2e04fc13b1ea4 /shell-scripts
parente68c0a7588d1d57b5798168827b4150c074f2946 (diff)
fixup
Diffstat (limited to 'shell-scripts')
-rw-r--r--shell-scripts/ansiblelint2
-rw-r--r--shell-scripts/compile22
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