From 5c69e02a35fbbb52c1c914b36f490a09c1a92bf6 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 23 Dec 2019 16:16:16 +0100 Subject: [PATCH] don't use `with_file` in exclusive=True examples (#65967) --- lib/ansible/modules/system/authorized_key.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ansible/modules/system/authorized_key.py b/lib/ansible/modules/system/authorized_key.py index df81627326..714c6fb320 100644 --- a/lib/ansible/modules/system/authorized_key.py +++ b/lib/ansible/modules/system/authorized_key.py @@ -139,11 +139,9 @@ EXAMPLES = r''' - name: Set authorized key, removing all the authorized keys already set authorized_key: user: root - key: '{{ item }}' + key: "{{ lookup('file', 'public_keys/doe-jane') }}" state: present exclusive: True - with_file: - - public_keys/doe-jane - name: Set authorized key for user ubuntu copying it from current user authorized_key: