The basic commands to work with Ansible

Run first following command (not as root !!!)

cd /home/username/to-be-linux-ansible/trunk
. ./env
svn up (not necessary, but nice to be up to date)

Use of wildcards
Show on which nodes it will run:

ansible ‘~VERNAME.*’ -i hosts.nagios -s -m shell -c ssh -a “/etc/init.d/samhain status” --list-hosts
(the option --list-hosts will show you on which nodes it will run)

Use of file (fe hosts3) with servernames

ansible -i hosts3 ‘all’ -s -m shell -a ‘uptime’