Ad-hoc run shell command ansible

Run a one-liner shell command on all hosts

ansible all -i inventory -m shell -a 'uptime'
more ansible all 56 commands →