2 ms·
you can run pure bash from ansible, either by copying a script or using the shell module: examples: both with sudo ansible all -m shell -a "hostname" -b ansib
by pnutjam 6y ago
you can run pure bash from ansible, either by copying a script or using the shell module:
examples:
both with sudo
ansible all -m shell -a "hostname" -b
ansible all -m script -a "script=/home/user/myscript.sh" -b
I love to throw together a quick inventory list and run adhoc ansible commands against a bunch of servers.