Managing Templated Files
Include comments in Ansible Deployed Templates.
Use the “Ansible managed” string set in the ansible_managed directive. The ansible_managed directive is set in the ansible.cfg file:
ansible_managed = Ansible managed
To include the ansible_managed string inside a Jinja2 template, use the following syntax:
{{ ansible_managed }}
Disclaimer: Views expressed in articles are those of the respective authors and do not necessarily reflect the views of their employers or this site. While we aim for accuracy, please verify information before relying on it, and let us know if you spot an error.