I'd like to do something like the following, but I couldn't find anything
in the docs or on the mailing list that made it clear whether this should
be possible or not:
---- name: add user keys from GitHub
authorized_key:
user: "{{item.user}}"
key: "{{item.ssh_public_key |
default(\"https://github.myenterprise.com/{{item.user}}.keys\")}}"
with_items: users
When I tried to do this, I got an error message about not being able to
fetch the key:
msg: Error getting key from: https://github.myenterprise.com/{# item.user
#}.keys
I tried both escaping the default value with \" and using ', but got the
same error each time.
Thanks!
-md
--
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/3168428b-62ab-43b7-8880-b996a17d74de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.