Ansible is a simple tool used to perform "remote operation". This command allows for the definition of a set of hosts and run a single task script.
Common options | Explanation |
---|---|
--ask-vault-pass | Request password vault |
--become-method | To use privilege escalation method (default =% (default) s), please use the ansible-doc -t -l lists become effective option. |
--become-user | As that user to run the operation (default = root) |
--list-hosts | An output matching host list; not perform any other operation |
--playbook-dir | Since this tool does not use the script, so it can be used as an alternative script directory, thereby setting the relative path to a number of features, including role / group_vars / like. |
--private-key, --key-file | Use this file to verify the connection |
--scp-extra-args | Specify additional parameters to pass only the scp |
--sftp-extra-args | Specify additional parameters to pass only the sftp |
--ssh-common-args | Specifies the common parameters to be passed to sftp / scp / ssh of |
--ssh-extra-args | Only to specify additional parameters passed to ssh |
--syntax-check | The script syntax check, but does not execute it |
--vault-id | To use the identity vault |
--vault-password-file | Password file library |
--version | Display the program version, the configuration file location, configuration module search path, module location, location and exit the executable file |
-B, --background | Asynchronous operation, failed after X seconds (default = N / A) |
-C, --check | Do not make any changes; the contrary, trying to predict some of the changes that may occur |
-D, --diff | When you change the (small) files and templates, show differences in these documents; useful for -check |
-K, --ask-become-pass | Request permission to upgrade password |
-M,--module-path | Add the colon-separated path to the module library (default = ~ / .ansible / plugins / modules: / usr / share / ansible / plugins / modules) |
-P, --poll | If -B set the polling interval (default is 15) |
-T, --timeout | In seconds to cover the connection timeout (default 10) |
-a, --args | Module Parameters |
-b, --become | Use become run operation (not imply password prompt) |
-c, --connection | Connection type (default = smart) to be used |
-e---extra whose | If the file name begins with @, then the other variable is set to key = value or YAML / JSON |
-f, --forks | Specifies the number of parallel processes to use (default is 5) |
-h,--help | Display this help message and exit |
-i,--inventory, --inventory-file | Specifies the host path stock or a comma-separated list of hosts. -inventory-file is deprecated |
-k,--ask-pass | Request connection password |
-l, --limit | Host is further selected to limit an additional mode |
-m, --module-name | The module name to be executed (default = command) |
-o, --one-line | Compression output |
-t, --tree | The output record this directory |
-u, --user | As the user is connected (default None) |