aboutsummaryrefslogtreecommitdiffstats
path: root/check_all.sh
blob: d8281e1306b477cad3044f60d6484fa67917d5cc (plain)
1
2
3
4
5
6
7
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"