How to use look-up plugin in ansible roles

30 views
Skip to first unread message

Komal Suthar

unread,
May 16, 2021, 5:45:30 AM5/16/21
to ansible...@googlegroups.com
Hello,
I want to use look-up plugin to read a file in the roles so i kept that file in files folder and using the look-up in tasks/main file but it is not working anybody can help?

Stefan Hornburg (Racke)

unread,
May 16, 2021, 5:54:21 AM5/16/21
to ansible...@googlegroups.com
Please post the code in tasks/main.yml and the error message / expected outcome.

Regards
Racke

> --
> 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
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuWmfSEWSmqD9kYiPA0d6cZv_LjWFK9j1us4J5ES%3Dtz6hA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuWmfSEWSmqD9kYiPA0d6cZv_LjWFK9j1us4J5ES%3Dtz6hA%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

OpenPGP_signature

Komal Suthar

unread,
May 16, 2021, 6:07:51 AM5/16/21
to ansible...@googlegroups.com
Is the error coming from the k8s..?

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ebd4414a-aeaa-d796-e9d7-0362f3dc437d%40linuxia.de.

Stefan Hornburg (Racke)

unread,
May 16, 2021, 6:18:48 AM5/16/21
to ansible...@googlegroups.com
On 5/16/21 12:07 PM, Komal Suthar wrote:
> Is the error coming from the k8s..?
>

My crystal ball crashed, so no way to figure out your problem based on your minimal input.

Bye
Racke

> On Sun, May 16, 2021, 3:24 PM Stefan Hornburg (Racke) <ra...@linuxia.de
<mailto:ra...@linuxia.de>> wrote:
>
> On 5/16/21 11:45 AM, Komal Suthar wrote:
> > Hello,
> > I want to use look-up plugin to read a file in the roles so i kept that
> file in files folder and using the look-up in
> > tasks/main file but it is not working anybody can help?
> >
>
> Please post the code in tasks/main.yml  and the error message / expected outcome.
>
> Regards
>          Racke
>
> > --
> > 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
> > ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>
> <mailto:ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>>.
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuWmfSEWSmqD9kYiPA0d6cZv_LjWFK9j1us4J5ES%3Dtz6hA%40mail.gmail.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuWmfSEWSmqD9kYiPA0d6cZv_LjWFK9j1us4J5ES%3Dtz6hA%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
> --
> 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
> ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ebd4414a-aeaa-d796-e9d7-0362f3dc437d%40linuxia.de
> <https://groups.google.com/d/msgid/ansible-project/ebd4414a-aeaa-d796-e9d7-0362f3dc437d%40linuxia.de>.
>
> --
> 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
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXaVUo%2B_hpAh3Xpt9E3CuLoQL%3D_VKnEi2uhQhM4Zo4R3Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXaVUo%2B_hpAh3Xpt9E3CuLoQL%3D_VKnEi2uhQhM4Zo4R3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages