The 'file' lookup does not deal with YAML so with_files will just return an entry for the content of the file, 'lines' or split() should make it work.
Since you don't specify what "doesn't work" means ... I really cannot even guess at what the error is, always include the error you get when you are trying to have others help debugging. ---------- 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/CACVha7cmPysTvTt9d2Vs5COw918UbGTGCEEPaF0hJJH4A%2BxCVg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
