From 3208cf5abf1695d47bb0ced2a226cd5bed8ccca5 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Wed, 12 Oct 2016 18:03:19 -0400 Subject: [PATCH] Change example syntax on redhat_subscription module --- .../packaging/os/redhat_subscription.py | 37 ++++++++++++------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/lib/ansible/modules/packaging/os/redhat_subscription.py b/lib/ansible/modules/packaging/os/redhat_subscription.py index 2bef4cbb56c..ea56ac55100 100644 --- a/lib/ansible/modules/packaging/os/redhat_subscription.py +++ b/lib/ansible/modules/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