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 Causes Ansible to print more debug messages. Adding multiple -v will
24 increase the verbosity, the builtin plugins currently evaluate up to
25 -vvvvvv. A reasonable level to start is -vvv, connection debugging
26 might require -vvvv. This argument may be specified multiple times.
27
29 list list and output available configs
30
31 --format 'FORMAT', -f 'FORMAT'
32 Output format for list
33
34 -c 'CONFIG_FILE', --config 'CONFIG_FILE'
35 path to configuration file, defaults to first file found in
36 precedence.
37
38 -t 'TYPE', --type 'TYPE'
39 Filter down to a specific plugin type.
40
41 dump Shows the current settings, merges ansible.cfg if specified
42
43 --format 'FORMAT', -f 'FORMAT'
44 Output format for dump
45
46 --only-changed, --changed-only
47 Only show configurations that have changed from the default
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 view Displays the current config file
57
58 -c 'CONFIG_FILE', --config 'CONFIG_FILE'
59 path to configuration file, defaults to first file found in
60 precedence.
61
62 -t 'TYPE', --type 'TYPE'
63 Filter down to a specific plugin type.
64
65 init Create initial configuration
66
67 --disabled
68 Prefixes all entries with a comment character to disable them
69
70 --format 'FORMAT', -f 'FORMAT'
71 Output format for init
72
73 -c 'CONFIG_FILE', --config 'CONFIG_FILE'
74 path to configuration file, defaults to first file found in
75 precedence.
76
77 -t 'TYPE', --type 'TYPE'
78 Filter down to a specific plugin type.
79
81 The following environment variables may be specified.
82
83 ANSIBLE_CONFIG -- Specify override location for the ansible config file
84
85 Many more are available for most options in ansible.cfg
86
87 For a full list check https://docs.ansible.com/. or use the ansi‐
88 ble-config command.
89
91 /etc/ansible/ansible.cfg -- Config file, used if present
92
93 ~/.ansible.cfg -- User config file, overrides the default config if
94 present
95
96 ./ansible.cfg -- Local config file (in current working directory) as‐
97 sumed to be 'project specific' and overrides the rest if present.
98
99 As mentioned above, the ANSIBLE_CONFIG environment variable will over‐
100 ride all others.
101
103 Ansible was originally written by Michael DeHaan.
104
106 Copyright © 2018 Red Hat, Inc | Ansible. Ansible is released under the
107 terms of the GPLv3 license.
108
110 ansible (1), ansible-console (1), ansible-doc (1), ansible-galaxy [22m(1),
111 ansible-inventory [22m(1), ansible-playbook [22m(1), ansible-pull (1), ansi‐
112 ble-vault (1)
113
114 Extensive documentation is available in the documentation site: <‐
115 https://docs.ansible.com>. IRC and mailing list info can be found in
116 file CONTRIBUTING.md, available in: <‐
117 https://github.com/ansible/ansible>
118
119
120
121
122Ansible 2.16.0 ANSIBLE-CONFIG(1)