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/2736e69e-d790-4160-89b0-c4b7c6dfddb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.