summaryrefslogtreecommitdiff
path: root/shell-scripts/fawx
diff options
context:
space:
mode:
authorMike Vink <mike.vink@stater.nl>2023-04-20 16:04:17 +0200
committerMike Vink <mike.vink@stater.nl>2023-04-20 16:04:17 +0200
commit6e37e097a59e7ce95a29754c420b8fefa8a16112 (patch)
tree8f9877e88fcf1604d58516d04b90514b4522b880 /shell-scripts/fawx
parent7838c2d394522a80888856af6f7b5a02c1634ac8 (diff)
fixup
Diffstat (limited to 'shell-scripts/fawx')
-rw-r--r--shell-scripts/fawx8
1 files changed, 8 insertions, 0 deletions
diff --git a/shell-scripts/fawx b/shell-scripts/fawx
new file mode 100644
index 0000000..d7247bc
--- /dev/null
+++ b/shell-scripts/fawx
@@ -0,0 +1,8 @@
+#!/bin/bash
+# Removes ansi escape codes from ansible outputs
+error () {
+ echo "$1"
+ exit 1
+}
+command -v awx || error "awx cli not found"
+awx "$@" | filter-ansi