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
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)
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
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