docs(authorized_key): add lookup.url example

This commit is contained in:
Simon Legner 2021-09-08 08:00:56 +02:00
parent e396e5cb43
commit 1626c3d5e6
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
trivial:
- authorized_keys - add example involving lookup.url

View file

@ -94,6 +94,12 @@ EXAMPLES = r'''
state: present
key: https://github.com/charlie.keys
- name: Set authorized keys taken from url using lookup
ansible.posix.authorized_key:
user: charlie
state: present
key: "{{ lookup('url', 'https://github.com/charlie.keys', split_lines=False) }}"
- name: Set authorized key in alternate location
ansible.posix.authorized_key:
user: charlie