From ea3c8ee406f07fc6df2b51d71f6f535284f959de Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Wed, 12 Oct 2016 18:06:26 -0400 Subject: [PATCH] Change example syntax on rpm_key module --- lib/ansible/modules/packaging/os/rpm_key.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/packaging/os/rpm_key.py b/lib/ansible/modules/packaging/os/rpm_key.py index d5443018e9..85474d2d34 100644 --- a/lib/ansible/modules/packaging/os/rpm_key.py +++ b/lib/ansible/modules/packaging/os/rpm_key.py @@ -52,13 +52,19 @@ options: EXAMPLES = ''' # Example action to import a key from a url -- rpm_key: state=present key=http://apt.sw.be/RPM-GPG-KEY.dag.txt +- rpm_key: + state: present + key: 'http://apt.sw.be/RPM-GPG-KEY.dag.txt' # Example action to import a key from a file -- rpm_key: state=present key=/path/to/key.gpg +- rpm_key: + state: present + key: /path/to/key.gpg # Example action to ensure a key is not present in the db -- rpm_key: state=absent key=DEADB33F +- rpm_key: + state: absent + key: DEADB33F ''' import re import os.path