summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Doran <sdoran@ansible.com>2016-10-12 18:03:19 -0400
committerSam Doran <sdoran@ansible.com>2016-11-15 14:55:26 -0500
commit8533529c2bd79e8d30e5528c0bd5e7d8ab52d33b (patch)
tree0cffedcd479e30d0a5d7488f955cb51a3a7e2574
parent34fb8c3ec285078ecf68e011331958281ee9142f (diff)
downloadansible-modules-core-8533529c2bd79e8d30e5528c0bd5e7d8ab52d33b.tar.gz
Change example syntax on redhat_subscription module
-rw-r--r--packaging/os/redhat_subscription.py37
1 files changed, 24 insertions, 13 deletions
diff --git a/packaging/os/redhat_subscription.py b/packaging/os/redhat_subscription.py
index 2bef4cbb..ea56ac55 100644
--- a/packaging/os/redhat_subscription.py
+++ b/packaging/os/redhat_subscription.py
@@ -114,30 +114,41 @@ options:
EXAMPLES = '''
# Register as user (joe_user) with password (somepass) and auto-subscribe to available content.
-- redhat_subscription: state=present username=joe_user password=somepass autosubscribe=true
+- redhat_subscription:
+ state: present
+ username: joe_user
+ password: somepass
+ autosubscribe: true
# Same as above but with pulling existing system data.
-- redhat_subscription: state=present username=joe_user password=somepass
- consumer_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+- redhat_subscription:
+ state: present
+ username: joe_user
+ password: somepass
+ consumer_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# Register with activationkey (1-222333444) and consume subscriptions matching
# the names (Red hat Enterprise Server) and (Red Hat Virtualization)
-- redhat_subscription: state=present
- activationkey=1-222333444
- pool='^(Red Hat Enterprise Server|Red Hat Virtualization)$'
+- redhat_subscription:
+ state: present
+ activationkey: 1-222333444
+ pool: '^(Red Hat Enterprise Server|Red Hat Virtualization)$'
# Update the consumed subscriptions from the previous example (remove the Red
# Hat Virtualization subscription)
-- redhat_subscription: state=present
- activationkey=1-222333444
- pool='^Red Hat Enterprise Server$'
+- redhat_subscription:
+ state: present
+ activationkey: 1-222333444
+ pool: '^Red Hat Enterprise Server$'
# Register as user credentials into given environment (against Red Hat
# Satellite 6.x), and auto-subscribe to available content.
-- redhat_subscription: state=present
- username=joe_user password=somepass
- environment=Library
- autosubscribe=true
+- redhat_subscription:
+ state: present
+ username: joe_user
+ password: somepass
+ environment: Library
+ autosubscribe: yes
'''
import os