Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 342 Bytes

ad_hoc.md

File metadata and controls

7 lines (5 loc) · 342 Bytes

How to run adhoc shell commands

ansible [group] -i [inventory] -u [user] [--become] [--vault-password-file {file}] [--private-key {file}] -m shell -a '{here goes the command}'
ansible [group] -i [inventory] -u [user] [--become] [--vault-password-file {file}] [--private-key {file}] -m file -a 'path=/blah state=directory mode=0444'