ansible Inventory_file -i inv -m shell -a "httpd -S 2>/dev/null| grep 'port 80' | wc -l" | grep -v SUC | awk '{ SUM += $1} END { print SUM }'
ansible count virtualhosts
Leave a reply
ansible Inventory_file -i inv -m shell -a "httpd -S 2>/dev/null| grep 'port 80' | wc -l" | grep -v SUC | awk '{ SUM += $1} END { print SUM }'