Neither are working for me - I'm getting the same issue even when in yaml format. If I use item.0 the error disappears (but of course the task fails because it is incorrect).
- authorized_key: user: someuser key: "{{lookup('file',item)}}" with_fileglob: - /tmp/keys/* On Tuesday, December 9, 2014 11:32:23 AM UTC-5, Mathieu Guillaume wrote: > > Looks like some kind of parsing issue, if I use the full YAML syntax below > it works, but not if I use key=... > > Working: > > - authorized_key: > user: bob > key: "{{lookup('file',item)}}" > with_fileglob: > - /some/absolute/path/id_*.pub > > Not working: > > - authorized_key: user=bob key='{{lookup("file", item)}}' > with_fileglob: > - /some/absolute/path/id_*.pub > > > On Tuesday, December 9, 2014 5:04:00 PM UTC+1, Brian Coca wrote: >> >> I did very simple (if contrived) test and this seems to work fine: >> >> >> - copy: content={{lookup('file',item)}} dest=/tmp/{{item|basename}} >> with_fileglob: >> - files/* >> >> >> -- >> 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1e54c1ae-d839-4b5d-be29-ebd045871573%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.