ansible -i inv '*' -m ping
ansible -i inv all -m ping
ansible -i inv 'ubuntu*' -m ping ansible -i inv 'centos*' -m ping