Skip to content

authorized_keys key does not unpack urls seperated by new line (when exclusive is set to true) #684

@gsaudade99

Description

@gsaudade99
SUMMARY

There is a problem here the exclusive key from ansible.posix.authorized_keys is not loop aware. So if want to
If you try to unpack an url directy into a list on key, it brakes.

ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION
ansible [core 2.18.6]
COLLECTION VERSION
ansible.posix                            2.1.0  
STEPS TO REPRODUCE

Key string sepated by new line:
key: https://github.com/user.keys\nssh-ed25519 AAAAC3Nzad... admin1@example1

EXPECTED RESULTS

Run successfuly.

ACTUAL RESULTS
fatal: []: FAILED! => {"changed": false, "msg": "Error getting key from: https://github.com/user.keys\nssh-ed25519 AAAAC3Nzad... admin1@example1"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions