Error when enabling jinja2_extensions with ansible
In my (default generated) ansible.cfg I have uncommented the jinja2_extensions
line and changed it to the following:
Ansible passing variables to j2 templates
With ansible I am using j2 templates to replace files, and pass through environment vars unique to each environment and some shared. Neither the variables for global or local work. I have the following set-up and structure.
AttributeError: ‘list’ object has no attribute ‘splitlines’
Considering the following test playbook:
Ansible Jinja2: AttributeError: ‘list’ object has no attribute ‘splitlines’
Considering the following test playbook: