Ansible ad-hoc
May 09, 2018
To send a command to all the servers within a playbook:
$ ansible all -a "service chronyd restart" -u devops --become
🔗What’s an ad-hoc command?
An ad-hoc command is something that you might type in to do something really quick, but don’t want to save for later.
http://docs.ansible.com/ansible/latest/user_guide/intro_adhoc.html