[ansible-project] Re: j2 child template renders but parent does not

2024-07-02 Thread dutu.a...@gmail.com
Forgot to add: ansible version 2.14.3, jinja2 version 2.10.1 On Wednesday, July 3, 2024 at 2:58:31 AM UTC+3 dutu.a...@gmail.com wrote: > Hello, > > I have a j2 template that looks like this: > > --- > text text > {% block filter %}{% endblock %} > --- > > and a

[ansible-project] j2 child template renders but parent does not

2024-07-02 Thread dutu.a...@gmail.com
Hello, I have a j2 template that looks like this: --- text text {% block filter %}{% endblock %} --- and a child template that extends it: --- {% extends 'parent.j2' %} {% block filter %} add filter here {% endblock %} Now in another template I have this: {{ lookup ('template', template_name)

[ansible-project] Template module doesn't work with any kind of loop

2023-02-28 Thread dutu.a...@gmail.com
Hello, I'm having a textbook task (taken straight out from the documentation examples) using template and with_filetree: - name: axis pipeline template: src: "{{ item.src }}" dest: "{{ logstash_home }}/{{ item.path | splitext | first }}" with_filetree: ../templates/logstash/pipeline

[ansible-project] Ansible can't sudo to unprivileged user

2022-12-01 Thread dutu.a...@gmail.com
Hello, I have a use case where ansible has to connect with an automation user, which is deployed on all the servers, and the sudo to a service user that runs on that particular machine. The service users are all different between these machines and are unprivileged users. So ansible is having