authorized_key: Use loop instead of with_file in example (#740) (#749)

Fixes: #607


(cherry picked from commit af933670cc)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Hideki Saito
2026-05-27 17:01:01 +09:00
committed by GitHub
parent aaacdb9d13
commit b42cbb2a97

View File

@@ -121,8 +121,8 @@ EXAMPLES = r'''
ansible.posix.authorized_key:
user: deploy
state: present
key: '{{ item }}'
with_file:
key: "{{ lookup('file', item) }}"
loop:
- public_keys/doe-jane
- public_keys/doe-john