summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Doran <sdoran@ansible.com>2016-10-12 17:59:13 -0400
committerSam Doran <sdoran@ansible.com>2016-11-15 14:23:36 -0500
commit3f224de12aee6222a88c32700f1e86fac0a9d857 (patch)
tree0b2314aca3ca07e60d73a140aba812ea731c997d
parentaa18bf8933e58b16a81b53bd694a0a156eaf82c1 (diff)
downloadansible-modules-core-3f224de12aee6222a88c32700f1e86fac0a9d857.tar.gz
Change example syntax on apt_rpm module
-rwxr-xr-xpackaging/os/apt_rpm.py24
1 files changed, 18 insertions, 6 deletions
diff --git a/packaging/os/apt_rpm.py b/packaging/os/apt_rpm.py
index 59eccfee..e8a702e9 100755
--- a/packaging/os/apt_rpm.py
+++ b/packaging/os/apt_rpm.py
@@ -50,13 +50,25 @@ notes: []
EXAMPLES = '''
# install package foo
-- apt_rpm: pkg=foo state=present
+- apt_rpm:
+ pkg: foo
+ state: present
+
# remove package foo
-- apt_rpm: pkg=foo state=absent
-# description: remove packages foo and bar
-- apt_rpm: pkg=foo,bar state=absent
-# description: update the package database and install bar (bar will be the updated if a newer version exists)
-- apt_rpm: name=bar state=present update_cache=yes
+- apt_rpm:
+ pkg: foo
+ state: absent
+
+# description: remove packages foo and bar
+- apt_rpm:
+ pkg: foo,bar
+ state: absent
+
+# description: update the package database and install bar (bar will be the updated if a newer version exists)
+- apt_rpm:
+ name: bar
+ state: present
+ update_cache: yes
'''