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

Fixes: #607

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde
2026-05-24 00:22:50 -07:00
committed by GitHub
parent 3c232a2429
commit af933670cc

View File

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