Ansible 2 · Ad-hoc commands
Run a command on a group
Run a shell command on every host in the webservers group.
ansible webservers -i inventory.ini -m command -a "uptime"
Official Ansible 2 documentation
Ansible 2 · Ad-hoc commands
Run a shell command on every host in the webservers group.
ansible webservers -i inventory.ini -m command -a "uptime"
Official Ansible 2 documentation
Was this page helpful?