Skip to content

authorized_key and openssh_keypair are not part ansible core. #8

@adigozalov

Description

@adigozalov

authorized_key and openssh_keypair are not part of ansible-core.
And need to be installed separately

ansible-galaxy collection install  community.crypto
ansible-galaxy collection install  ansible.posix

If authorized_key is going to be executed via sudo, like in solution of 2nd exercise ,make sure that the collection is available for root.

sudo ansible-galaxy collection list ansible.posix

Otherwise will get below error.
"The module authorized_key was redirected to ansible.posix.authorized_key, which could not be loaded."
To fix just re-run collection installation through sudo

sudo ansible-galaxy collection install ansible.posix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions