Ad-hoc Ansible Commands
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
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
Use the following link to trackback from your own site:
https://tom.hastings.dev/trackbacks?article_id=19
Leave a comment