ansible.posix/plugins/modules
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
..
__init__.py Initial commit 2020-03-09 13:15:28 +00:00
acl.py Fixed to set ACLs on paths mounted with NFSv4 correctly 2024-09-20 10:10:15 +09:00
at.py Apply suggestions from code review 2024-06-15 17:00:54 +12:00
authorized_key.py Allow remote path for authorized_key 2024-09-30 09:40:03 +03:00
firewalld.py Merge pull request #548 from gfokkema/main 2024-09-09 08:11:26 +00:00
firewalld_info.py review modules docs 2024-06-15 17:00:54 +12:00
mount.py Remove wrong version_added section from mount module 2024-09-13 15:15:04 +09:00
patch.py review modules docs 2024-06-15 17:00:54 +12:00
rhel_facts.py review modules docs 2024-06-15 17:00:54 +12:00
rhel_rpm_ostree.py review modules docs 2024-06-15 17:00:54 +12:00
rpm_ostree_upgrade.py fixes based on feedback 2022-11-22 09:03:04 -06:00
seboolean.py review modules docs 2024-06-15 17:00:54 +12:00
selinux.py review modules docs 2024-06-15 17:00:54 +12:00
synchronize.py Apply suggestions from code review 2024-06-15 17:00:54 +12:00
sysctl.py Apply suggestions from code review 2024-06-15 17:00:54 +12:00