This is an old revision of the document!
ansible all -m ping ansible foo.example.com -m yum -a "name=httpd state=installed" ansible -i hosts all -m yum -a 'name=ncdu state=present' ansible -i hosts all -m yum -a 'name=ncdu state=absent' ansible foo.example.com -a "/usr/sbin/reboot"
Only way to pass a command on target without python installed
# ansible myhost --become -m raw -a "yum -y install python"
ansible-inventory --list ansible-inventory -i ./sample.yml --graph ansible-config dump --only-changed ansible -m module_name -a attributes