aboutsummaryrefslogtreecommitdiffstats
path: root/check_all.sh
diff options
context:
space:
mode:
Diffstat (limited to 'check_all.sh')
-rwxr-xr-xcheck_all.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/check_all.sh b/check_all.sh
new file mode 100755
index 0000000..d8281e1
--- /dev/null
+++ b/check_all.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# This script shows how to run a single command on all hosts; here to check libc version installed
+echo "### Check libc6 version with 'command' and 'apt' (fails on wheezy)"
+ansible -o -f 8 -i hosts all -m command -a "apt list libc6 -q"
+
+echo "### Check openssl version with 'shell' module"
+ansible -o -f 8 -i hosts all -m shell -a "openssl version -a | head -n 1"