We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Role fails when no authorized_keys specified for a user. Error: could not find 'authorized_keys' key in iterated item
could not find 'authorized_keys' key in iterated item
The text was updated successfully, but these errors were encountered:
@mvdriel You've build it yourself :-)
Maybe do something like this - "{{ authorized_keys | default([]) }}? Can you test it?
- "{{ authorized_keys | default([]) }}
This is probably also an issue for public and private keys
Sorry, something went wrong.
@tersmitten Yes and no, when there was only one keys array (authorized_keys) per user, it would be strange to not specify this one.
I already tried your suggestion, but it doesn't seem to be so easy. There is discussion about a related feature request, see ansible/ansible#9827
@tersmitten What do you think about my "ugly" patch?
It is a solution, but so much more code :-( Wouldn't it be easier to change the documentation and make the properties required. At least []?
[]
Successfully merging a pull request may close this issue.
Role fails when no authorized_keys specified for a user. Error:
could not find 'authorized_keys' key in iterated item
The text was updated successfully, but these errors were encountered: