Thomas Hastings

Ad-hoc Ansible Commands

December 20, 2017 on 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