Skip to content

Instantly share code, notes, and snippets.

@hilt86
Created October 23, 2019 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hilt86/dfcc0bfdead12937d8c9b99b27549c9e to your computer and use it in GitHub Desktop.
Save hilt86/dfcc0bfdead12937d8c9b99b27549c9e to your computer and use it in GitHub Desktop.
ansible-tips-tricks

Restart services using Ansible ad-hoc commands

ansible -m systemd -a "name=metricbeat state=stopped" webservers --become

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment