From f5c61650a78dbd4eef4ee3e114befcfbadb98a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Tue, 10 Jan 2017 09:44:43 +0100 Subject: [PATCH] Add information about lookup file constraint. --- lib/ansible/modules/packaging/os/apt_key.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/packaging/os/apt_key.py b/lib/ansible/modules/packaging/os/apt_key.py index a5fd723f6c..b9a05c9448 100644 --- a/lib/ansible/modules/packaging/os/apt_key.py +++ b/lib/ansible/modules/packaging/os/apt_key.py @@ -112,9 +112,9 @@ EXAMPLES = ''' id: 0x473041FA state: absent -# Add a key from a file on the Ansible server +# Add a key from a file on the Ansible server. Use armored file since utf-8 string is expected. Must be of "PGP PUBLIC KEY BLOCK" type. - apt_key: - data: "{{ lookup('file', 'apt.gpg') }}" + data: "{{ lookup('file', 'apt.asc') }}" state: present # Add an Apt signing key to a specific keyring file