- stretch 2.2.1.0-2+deb9u1
- testing 2.7.7+dfsg-1
- stretch-backports 2.7.5+dfsg-1~bpo9+1
- unstable 2.7.8+dfsg-1
ANSIBLE-CONSOLE(1) | System administration commands | ANSIBLE-CONSOLE(1) |
NAME¶
ansible-console - a REPL for ad-hoc ansible tasksSYNOPSIS¶
ansible-console <host-pattern> [-m module_name] [-a args] [options]DESCRIPTION¶
Ansible console is a REPL that allows for running ad-hoc tasks against a chosen inventory (based on dominis' ansible-shell).ARGUMENTS¶
host-patternOPTIONS¶
-a 'ARGUMENTS', --args='ARGUMENTS'-b, --become
K, --ask-become-pass
-k, --ask-pass
--ask-su-pass
--ask-sudo-pass
--ask-vault-pass
-B NUM, --background=NUM
--become-method=BECOME_METHOD
--become-user=BECOME_USER
-C, --check
-c CONNECTION, --connection=CONNECTION
-e EXTRA_VARS, --extra-vars='EXTRA_VARS
-f NUM, --forks=NUM
-h, --help
-i PATH, --inventory=PATH
-l SUBSET, --limit=SUBSET
--list-hosts
-m NAME, --module-name=NAME
-M DIRECTORY, --module-path=DIRECTORY
-o, --one-line
-P NUM, --poll=NUM
--private-key=PRIVATE_KEY_FILE
-S, --su
-R SU_USER, --se-user=SUDO_USER
-s, --sudo
--ssh-common-args='-o ProxyCommand="ssh -W %h:%p ..." ...'
--sftp-extra-args='-f ...'
--scp-extra-args='-l ...'
--ssh-extra-args='-R ...'
-U SUDO_USERNAME, --sudo-user=SUDO_USERNAME
-t DIRECTORY, --tree=DIRECTORY
-T SECONDS, --timeout=SECONDS
-u USERNAME, --user=USERNAME
--vault-password-file=VAULT_PASSWORD_FILE
-v, --verbose
--version
INVENTORY¶
Ansible stores the hosts it can potentially operate on in an inventory. This can be an ini-like file, a script, directory or a list. The ini syntax is one host per line. Groups headers are allowed and are included on their own line, enclosed in square brackets that start the line.Ranges of hosts are also supported. For more information and additional options, see the documentation on http://docs.ansible.com/.
ENVIRONMENT¶
The following environment variables may be specified.ANSIBLE_INVENTORY — Override the default ansible inventory file
ANSIBLE_LIBRARY — Override the default ansible module library path
ANSIBLE_CONFIG — Override the default ansible config file
Many more are available for most options in ansible.cfg
FILES¶
/etc/ansible/hosts — Default inventory file/usr/share/ansible/ — Default module library
/etc/ansible/ansible.cfg — Config file, used if present
~/.ansible.cfg — User config file, overrides the default config if present
AUTHOR¶
Ansible was originally written by Michael DeHaan. See the AUTHORS file for a complete list of contributors.COPYRIGHT¶
Copyright © 2012, Michael DeHaan Ansible is released under the terms of the GPLv3 License.SEE ALSO¶
ansible-playbook(1), ansible-pull(1), ansible-doc(1), ansible-vault(1), ansible-galaxy(1)Extensive documentation is available in the documentation site: http://docs.ansible.com. IRC and mailing list info can be found in file CONTRIBUTING.md, available in: https://github.com/ansible/ansible
AUTHOR¶
:doctype:manpage3 | 2.1.0.0 |