1- basic ansible ad-hoc command


/etc/ansible/hosts

ansible localhost -m ping          # using Module ping 


ansible --list-hosts all