it would be easier if it were a host/group vars file or even a proper
ini file (there is an ini lookup plugin in queue). But if that is what
you have and assuming the caption is per inventory hostname:
shell: /etc/ansible/start_video.sh {{lookup('pipe', 'grep -A1 ' +
inventory_hostname + ' /etc/ansible/task/url.conf|tail -n 1'}}
^ that should work
--
Brian Coca
--
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/CAJ5XC8m2oT0Q7Umgnjh5ZLL1LKCvnxWUUeVBqD6DVV8U7UbZWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.