don't use with_file in exclusive=True examples (#65967)

This commit is contained in:
Evgeni Golov 2019-12-23 16:16:16 +01:00 committed by Sandra McCann
parent 10b6038e21
commit 5c69e02a35

View file

@ -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: