The ansible-config command

The ansible-config command is used to manage Ansible configuration files. To be honest, Ansible ships with some quite sensible defaults, so there is not much to configure outside of these. You can view the current configuration by running:

$ ansible-config dump

As you can see from the following output, all of the text in green is the default config, and any configuration in orange is a changed value:

Running the following command will list details of every configuration option there is within Ansible, including what the option does, its current state, when it was introduced, the type, and much more:

$ ansible-config list

The following screenshot shows the output for the preceding command:

If you had a configuration file, say at ~/.ansible.cfg, then you can load it using the -c or --config flags:

$ ansible-config --config="~/.ansible.cfg" view

The previous command will show you the configuration file.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.36.30