Change example syntax on redhat_subscription module
This commit is contained in:
parent
6c16ab6ca8
commit
3208cf5abf
1 changed files with 24 additions and 13 deletions
|
@ -114,30 +114,41 @@ options:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Register as user (joe_user) with password (somepass) and auto-subscribe to available content.
|
# 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.
|
# Same as above but with pulling existing system data.
|
||||||
- redhat_subscription: state=present username=joe_user password=somepass
|
- redhat_subscription:
|
||||||
consumer_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
state: present
|
||||||
|
username: joe_user
|
||||||
|
password: somepass
|
||||||
|
consumer_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
||||||
|
|
||||||
# Register with activationkey (1-222333444) and consume subscriptions matching
|
# Register with activationkey (1-222333444) and consume subscriptions matching
|
||||||
# the names (Red hat Enterprise Server) and (Red Hat Virtualization)
|
# the names (Red hat Enterprise Server) and (Red Hat Virtualization)
|
||||||
- redhat_subscription: state=present
|
- redhat_subscription:
|
||||||
activationkey=1-222333444
|
state: present
|
||||||
pool='^(Red Hat Enterprise Server|Red Hat Virtualization)$'
|
activationkey: 1-222333444
|
||||||
|
pool: '^(Red Hat Enterprise Server|Red Hat Virtualization)$'
|
||||||
|
|
||||||
# Update the consumed subscriptions from the previous example (remove the Red
|
# Update the consumed subscriptions from the previous example (remove the Red
|
||||||
# Hat Virtualization subscription)
|
# Hat Virtualization subscription)
|
||||||
- redhat_subscription: state=present
|
- redhat_subscription:
|
||||||
activationkey=1-222333444
|
state: present
|
||||||
pool='^Red Hat Enterprise Server$'
|
activationkey: 1-222333444
|
||||||
|
pool: '^Red Hat Enterprise Server$'
|
||||||
|
|
||||||
# Register as user credentials into given environment (against Red Hat
|
# Register as user credentials into given environment (against Red Hat
|
||||||
# Satellite 6.x), and auto-subscribe to available content.
|
# Satellite 6.x), and auto-subscribe to available content.
|
||||||
- redhat_subscription: state=present
|
- redhat_subscription:
|
||||||
username=joe_user password=somepass
|
state: present
|
||||||
environment=Library
|
username: joe_user
|
||||||
autosubscribe=true
|
password: somepass
|
||||||
|
environment: Library
|
||||||
|
autosubscribe: yes
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in a new issue