summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Doran <sdoran@ansible.com>2016-10-12 17:57:00 -0400
committerSam Doran <sdoran@ansible.com>2016-11-15 14:23:35 -0500
commit5995bf27bab36f25d4179401be436a30f02adaf9 (patch)
tree25df1d933025fa0b361da732d681ebf93cee1f58
parent21f6aa076c9fe2ce2efe367ab848dad8bbcbd32b (diff)
downloadansible-modules-core-5995bf27bab36f25d4179401be436a30f02adaf9.tar.gz
Change example syntax on apt_key module
-rw-r--r--packaging/os/apt_key.py35
1 files changed, 27 insertions, 8 deletions
diff --git a/packaging/os/apt_key.py b/packaging/os/apt_key.py
index 516255e1..753fb830 100644
--- a/packaging/os/apt_key.py
+++ b/packaging/os/apt_key.py
@@ -83,28 +83,47 @@ options:
EXAMPLES = '''
# Add an apt key by id from a keyserver
-- apt_key: keyserver=keyserver.ubuntu.com id=36A1D7869245C8950F966E92D8576A8BA88D21E9
+- apt_key:
+ keyserver: keyserver.ubuntu.com
+ id: 36A1D7869245C8950F966E92D8576A8BA88D21E9
# Add an Apt signing key, uses whichever key is at the URL
-- apt_key: url=https://ftp-master.debian.org/keys/archive-key-6.0.asc state=present
+- apt_key:
+ url: "https://ftp-master.debian.org/keys/archive-key-6.0.asc"
+ state: present
# Add an Apt signing key, will not download if present
-- apt_key: id=473041FA url=https://ftp-master.debian.org/keys/archive-key-6.0.asc state=present
+- apt_key:
+ id: 473041FA
+ url: "https://ftp-master.debian.org/keys/archive-key-6.0.asc"
+ state: present
# Remove an Apt signing key, uses whichever key is at the URL
-- apt_key: url=https://ftp-master.debian.org/keys/archive-key-6.0.asc state=absent
+- apt_key:
+ url: "https://ftp-master.debian.org/keys/archive-key-6.0.asc"
+ state: absent
# Remove a Apt specific signing key, leading 0x is valid
-- apt_key: id=0x473041FA state=absent
+- apt_key:
+ id: 0x473041FA
+ state: absent
# Add a key from a file on the Ansible server
-- apt_key: data="{{ lookup('file', 'apt.gpg') }}" state=present
+- apt_key:
+ data: "{{ lookup('file', 'apt.gpg') }}"
+ state: present
# Add an Apt signing key to a specific keyring file
-- apt_key: id=473041FA url=https://ftp-master.debian.org/keys/archive-key-6.0.asc keyring=/etc/apt/trusted.gpg.d/debian.gpg state=present
+- apt_key:
+ id: 473041FA
+ url: "https://ftp-master.debian.org/keys/archive-key-6.0.asc"
+ keyring: /etc/apt/trusted.gpg.d/debian.gpg
# Add Apt signing key on remote server to keyring
-- apt_key: id=473041FA file=/tmp/apt.gpg state=present
+- apt_key:
+ id: 473041FA
+ file: /tmp/apt.gpg
+ state: present
'''