Le 28/02/2019 à 09:19, [email protected] a écrit :
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 !! ;)
Please explain what you want to achieve, not the way you want to code
Regards,
JYL
--
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/53ed3aab-5315-0954-5bfd-d46b2cbd0409%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.