mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Use single-quotes to contain SSH keys as they may contain double-quotes
Fixes #1624.
This commit is contained in:
@@ -402,7 +402,7 @@ This syntax will remain in future versions, though we will also will provide way
|
||||
is an example using the authorized_key module, which requires the actual text of the SSH key as a parameter::
|
||||
|
||||
tasks:
|
||||
- authorized_key name=$item key="$FILE('/keys/$user1')"
|
||||
- authorized_key name=$item key='$FILE(/keys/$item)'
|
||||
with_items:
|
||||
- pinky
|
||||
- brain
|
||||
|
||||
Reference in New Issue
Block a user