Uppp pleasee !!! Le mercredi 27 février 2019 17:35:40 UTC+1, [email protected] a écrit : > > Hy all, > > I have one file with this content: > > 1,user1,host1,appli1 > 2,user2,host2,appli2 > > My problem is that i want an task who look if {{ > ansible_user}},{{inventory_hostname}} == "user1,host1" > > He must return ID of this line "1" > > If {{ ansible_user}},{{inventory_hostname}} == "user2,host2" He must > return "2" > > How do it please ?? > > I test command lookup et lineinfile but it's not works :/ > > > Thank you very much !! ;) > > >
-- 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/108eb048-5dd5-46fc-a349-203ef917ccf7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
