Skip to content

Instantly share code, notes, and snippets.

@andy-b-84
Created March 12, 2018 13:51
Show Gist options
  • Save andy-b-84/2ed9b94a5d67a786807bf14924651739 to your computer and use it in GitHub Desktop.
Save andy-b-84/2ed9b94a5d67a786807bf14924651739 to your computer and use it in GitHub Desktop.
ansible pattern* -i inventories/path --vault-password-file=vault.key -m file -a "path=/path/to/file state=absent" -b
```
$ ansible --help
Usage: ansible <host-pattern> [options]
Options:
-a MODULE_ARGS, --args=MODULE_ARGS
module arguments
...
-i INVENTORY, --inventory-file=INVENTORY
specify inventory host path
(default=/etc/ansible/hosts) or comma separated host
list.
...
-m MODULE_NAME, --module-name=MODULE_NAME
module name to execute (default=command)
...
Privilege Escalation Options:
control how and which user you become as on target hosts
...
-b, --become run operations with become (does not imply password
prompting)
...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment