Ad-hoc Ansible Commands

Posted by Tom

Sometimes I like to stash commands that I use regularly. Below is a snippet of code that I find helpful from time to time.

ansible {{comma separated host list}} -m shell -a 'shell command goes here' --become

Trackbacks

Use the following link to trackback from your own site:

https://tom.hastings.dev/trackbacks?article_id=19

Leave a comment

Leave a comment

(show email/url »)