mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Fix for documentation playbook loops
if key is used with lookup parameter that needs to be in quotes as otherwise it will load "ssh-rsa" "<the key>" "<the comment>" as separate values and fail with "this module requires key=value arguments"
This commit is contained in:
parent
7be13faae8
commit
20c5b7f800
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ It might happen like so::
|
||||||
- user: name={{ item.name }} state=present generate_ssh_key=yes
|
- user: name={{ item.name }} state=present generate_ssh_key=yes
|
||||||
with_items: users
|
with_items: users
|
||||||
|
|
||||||
- authorized_key: user={{ item.0.name }} key={{ lookup('file', item.1) }}
|
- authorized_key: user={{ item.0.name }} key="{{ lookup('file', item.1) }}"
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- users
|
- users
|
||||||
- authorized
|
- authorized
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue