Assuming inventory is defined as follows: ```inventory.ini [dev] dev-server1 dev-server2 [prod] prod-server1 prod-server2 ``` you can execute adhoc single command against single server using patterns in `ansible` command. `ansible <pattern> -i <inventory> -m <module name> ...` The following command executes command only on a single server from inventory: ``` ansible dev-server1 -i servers -m shell -a 'ls -l' ``` ### See also 1. [[How to run a single command on remote server using Ansible?]]