ansible.posix/changelogs/fragments
softwarefactory-project-zuul[bot] 0821768bcb
Merge pull request #568 from abakanovskii/feature/add_path_option_authorized_key
authorized_key: Allow local path to a key

SUMMARY

Add option to specify an absolute path to file with SSH key(s) for authorized_key

ISSUE TYPE

Feature Pull Request

COMPONENT NAME

authorized_key

ADDITIONAL INFORMATION


Before this change you would need to get key using ansible.builtin.slurp or something like ansible.builtin.command: cat <file> with register
I tried to keep it as simple as possible

# Now this is possible
- name: Set authorized keys taken from path
  ansible.posix.authorized_key:
    user: charlie
    state: present
    key: /home/charlie/.ssh/id_rsa.pub

Reviewed-by: Hideki Saito <saito@fgrep.org>
Reviewed-by: alexander
2024-09-30 07:07:25 +00:00
..
.keep Prepare 1.1.1 release 2020-09-02 20:55:04 +00:00
566_bump_version_161.yml Maintain galaxy.yml 2024-09-12 10:41:07 +09:00
567_remove_version_added.yml Remove wrong version_added section from mount module 2024-09-13 15:15:04 +09:00
568_update_authorized_key.yml Allow remote path for authorized_key 2024-09-30 09:40:03 +03:00
570_nfs4_acl.yml Fixed to set ACLs on paths mounted with NFSv4 correctly 2024-09-20 10:10:15 +09:00
571_ci_bump_core_version.yml CI - bump ansible-core version 2024-09-25 09:37:42 +09:00