Example cluster definition
/etc/ansible/hosts:
[mycluster]
node1.cz ansible_user=root
node2.cz ansible_user=root
node3.cz ansible_user=root
Ping example
ansible all -m ping
# with debugging output
ansible all -m ping -vvvv
Copy the file to all cluster nodes
ansible mycluster -m copy: src=test/myfile.txt dest=/root/test