New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please explain the meaning of '{{ }}' in ansible.cfg doc and the output generated by ansible-config init #1211
Comments
Files identified in the description: If these files are incorrect, please update the |
Thanks for your Ansible docs contribution! We talk about Ansible documentation on matrix at #docs:ansible.im and on libera IRC at #ansible-docs if you ever want to join us and chat about the docs! We meet there on Tuesdays (see the Ansible calendar) and welcome additions to our weekly agenda items - scroll down to find the upcoming agenda and add a comment to put something new on that agenda. |
The syntax represents that the value uses another config option in the default. It uses the Jinja2 templating syntax so the value I've transferred this issue to the |
But you shouldn't see this, the output should be templated to avoid confusion, while these templates do work 'internally', they won't work in most cases if defined by the user. |
Both the doc and |
yes, but its not that simple as things like |
Summary
Some default value in ansible.cfg doc and output generated by
ansible-config init --disabled --format ini -t base
contains value like this, for example
roles_path={{ ANSIBLE_HOME ~ "/roles:/usr/share/ansible/roles:/etc/ansible/roles" }}
It does not seems to be valid syntax. The documentation does not explain clearly how to interpret it.
Issue Type
Documentation Report
Component Name
lib/ansible/config/base.yml
Ansible Version
Configuration
OS / Environment
MacOS 14
RHEL 8/9
Additional Information
Please explain how to interpret '{{ }}' in doc
Code of Conduct
The text was updated successfully, but these errors were encountered: