don't use with_file
in exclusive=True examples (#65967)
This commit is contained in:
parent
10b6038e21
commit
5c69e02a35
1 changed files with 1 additions and 3 deletions
|
@ -139,11 +139,9 @@ EXAMPLES = r'''
|
||||||
- name: Set authorized key, removing all the authorized keys already set
|
- name: Set authorized key, removing all the authorized keys already set
|
||||||
authorized_key:
|
authorized_key:
|
||||||
user: root
|
user: root
|
||||||
key: '{{ item }}'
|
key: "{{ lookup('file', 'public_keys/doe-jane') }}"
|
||||||
state: present
|
state: present
|
||||||
exclusive: True
|
exclusive: True
|
||||||
with_file:
|
|
||||||
- public_keys/doe-jane
|
|
||||||
|
|
||||||
- name: Set authorized key for user ubuntu copying it from current user
|
- name: Set authorized key for user ubuntu copying it from current user
|
||||||
authorized_key:
|
authorized_key:
|
||||||
|
|
Loading…
Reference in a new issue