Ansible 2 · Ad-hoc commands
Restart a service
Restart a service on a group of hosts.
ansible webservers -i inventory.ini -m service -a "name=nginx state=restarted" --become
Official Ansible 2 documentation
Ansible 2 · Ad-hoc commands
Restart a service on a group of hosts.
ansible webservers -i inventory.ini -m service -a "name=nginx state=restarted" --become
Official Ansible 2 documentation
Was this page helpful?