Run ad-hoc shell command ansible

Execute a shell command on all webservers with sudo (-b)

ansible webservers -i inventory.ini -m shell -a 'df -h' -b
more ansible all 56 commands →