Why would the following template not expand (instead it is copied verbatim) 
on an Ubuntu 12.04 host, while it expands alright on a similar 16.04 host? 
Client is ansible 2.3.1.0.

> cat templates/etc/security/access.conf.j2 
# {{ ansible_managed }}
{% for current_scope in access_scope %}
{% for scope_current_content in access_scope_types[current_scope] %}
{{scope_current_content}}
{% endfor %}
{% endfor %}
-:ALL:ALL

The corresponding action is:

- name: Restrict access through pam
  action: template src=etc/security/access.conf.j2 dest=/etc/security/access
.conf mode=0644
  tags:
    - access
    - restrict

There is no error message, nor anything enlightening when I add -vvv.

I know I already posted when I had a very similar problem before, but I do 
not see the connection, as last time the issue was when moving the client 
to another Ubuntu version. This time only the template changed.


Thanks,
Sebastian

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/28d0ee21-0e56-49a5-b616-2849ae26a3e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to