1ANSIBLE-CONFIG(1)       System administration commands       ANSIBLE-CONFIG(1)
2
3
4

NAME

6       ansible-config - View ansible configuration.
7

SYNOPSIS

9       usage: ansible-config [-h] [--version] [-v] {list,dump,view} ...
10

DESCRIPTION

12       Config command line class
13

COMMON OPTIONS

15       --version
16          show program's version number, config file location, configured mod‐
17          ule search path, module location, executable location and exit
18
19       -h, --help
20          show this help message and exit
21
22       -v, --verbose
23          verbose mode (-vvv for more, -vvvv to enable connection debugging)
24

ACTIONS

26       list   list all current configs reading lib/constants.py and shows  env
27              and config file setting names
28
29              -c 'CONFIG_FILE',   --config 'CONFIG_FILE'
30                 path  to  configuration file, defaults to first file found in
31                 precedence.
32
33       dump   Shows the current settings, merges ansible.cfg if specified
34
35              --only-changed
36                 Only show configurations that have changed from the default
37
38              -c 'CONFIG_FILE',   --config 'CONFIG_FILE'
39                 path to configuration file, defaults to first file  found  in
40                 precedence.
41
42       view   Displays the current config file
43
44              -c 'CONFIG_FILE',   --config 'CONFIG_FILE'
45                 path  to  configuration file, defaults to first file found in
46                 precedence.
47

ENVIRONMENT

49       The following environment variables may be specified.
50
51       ANSIBLE_CONFIG -- Specify override location for the ansible config file
52
53       Many more are available for most options in ansible.cfg
54
55       For a full list  check  https://docs.ansible.com/.  or  use  the  ansi‐
56       ble-config command.
57

FILES

59       /etc/ansible/ansible.cfg -- Config file, used if present
60
61       ~/.ansible.cfg  --  User  config  file, overrides the default config if
62       present
63
64       ./ansible.cfg -- Local  config  file  (in  current  working  directory)
65       assumed to be 'project specific' and overrides the rest if present.
66
67       As  mentioned above, the ANSIBLE_CONFIG environment variable will over‐
68       ride all others.
69

AUTHOR

71       Ansible was originally written by Michael DeHaan.
72
74       Copyright © 2018 Red Hat, Inc | Ansible.  Ansible is released under the
75       terms of the GPLv3 license.
76

SEE ALSO

78       ansible  (1), ansible-console (1), ansible-doc (1), ansible-galaxy (1),
79       ansible-inventory (1), ansible-playbook (1),  ansible-pull  (1),  ansi‐
80       ble-vault (1)
81
82       Extensive  documentation  is  available  in  the documentation site: <‐
83       https://docs.ansible.com>.  IRC and mailing list info can be  found  in
84       file          CONTRIBUTING.md,         available         in:         <‐
85       https://github.com/ansible/ansible>
86
87
88
89
90Ansible 2.9.2                                                ANSIBLE-CONFIG(1)
Impressum