1ANSIBLE-CONFIG(1) System administration commands ANSIBLE-CONFIG(1)
2
3
4
6 ansible-config - View ansible configuration.
7
9 usage: ansible-config [-h] [--version] [-v] {list,dump,view,init} ...
10
12 Config command line class
13
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
26 list list and output available configs
27
28 -c 'CONFIG_FILE', --config 'CONFIG_FILE'
29 path to configuration file, defaults to first file found in
30 precedence.
31
32 -t 'TYPE', --type 'TYPE'
33 Filter down to a specific plugin type.
34
35 dump Shows the current settings, merges ansible.cfg if specified
36
37 --only-changed, --changed-only
38 Only show configurations that have changed from the default
39
40 -c 'CONFIG_FILE', --config 'CONFIG_FILE'
41 path to configuration file, defaults to first file found in
42 precedence.
43
44 -t 'TYPE', --type 'TYPE'
45 Filter down to a specific plugin type.
46
47 view Displays the current config file
48
49 -c 'CONFIG_FILE', --config 'CONFIG_FILE'
50 path to configuration file, defaults to first file found in
51 precedence.
52
53 -t 'TYPE', --type 'TYPE'
54 Filter down to a specific plugin type.
55
56 init
57 --disabled
58 Prefixes all entries with a comment character to disable them
59
60 --format 'FORMAT', -f 'FORMAT'
61 Output format for init
62
63 -c 'CONFIG_FILE', --config 'CONFIG_FILE'
64 path to configuration file, defaults to first file found in
65 precedence.
66
67 -t 'TYPE', --type 'TYPE'
68 Filter down to a specific plugin type.
69
71 The following environment variables may be specified.
72
73 ANSIBLE_CONFIG -- Specify override location for the ansible config file
74
75 Many more are available for most options in ansible.cfg
76
77 For a full list check https://docs.ansible.com/. or use the ansi‐
78 ble-config command.
79
81 /etc/ansible/ansible.cfg -- Config file, used if present
82
83 ~/.ansible.cfg -- User config file, overrides the default config if
84 present
85
86 ./ansible.cfg -- Local config file (in current working directory) as‐
87 sumed to be 'project specific' and overrides the rest if present.
88
89 As mentioned above, the ANSIBLE_CONFIG environment variable will over‐
90 ride all others.
91
93 Ansible was originally written by Michael DeHaan.
94
96 Copyright © 2018 Red Hat, Inc | Ansible. Ansible is released under the
97 terms of the GPLv3 license.
98
100 ansible [22m(1), ansible-console (1), ansible-doc (1), ansible-galaxy (1),
101 ansible-inventory (1), ansible-playbook (1), ansible-pull [22m(1), ansi‐
102 ble-vault (1)
103
104 Extensive documentation is available in the documentation site: <‐
105 https://docs.ansible.com>. IRC and mailing list info can be found in
106 file CONTRIBUTING.md, available in: <‐
107 https://github.com/ansible/ansible>
108
109
110
111
112Ansible 2.12.7 ANSIBLE-CONFIG(1)