Hi,
I have problem I cannot manage.
When I try to use authorized_key module in loop with lookup i have error:
ERROR: cannot find lookup plugin named item for usage in with_item
this is my code:
- name: User key
authorized_key: user="{{ item }}"
key="{{ lookup('file', 'pub_keys/' + item + '.txt') }}"
with_item: userlist
tags:
- user
- admin
I'm testing lookup alone:
- debug: msg="{{ lookup('file', 'pub_keys/' + item + '.txt') }}"
with_items: userlist
and its works fine. What I,am doing wrong?
Thanks in advance, M.
--
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/40038696-b66f-4fc1-9519-07688f6a1814%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.