#!/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"