Change example syntax on rhn_register module

pull/18777/head
Sam Doran 8 years ago committed by Matt Clay
parent 25af0652b9
commit 66c92d5623

@ -83,30 +83,44 @@ options:
EXAMPLES = ''' EXAMPLES = '''
# Unregister system from RHN. # Unregister system from RHN.
- rhn_register: state=absent username=joe_user password=somepass - rhn_register:
state: absent
username: joe_user
password: somepass
# 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.
- rhn_register: state=present username=joe_user password=somepass - rhn_register:
state: present
username: joe_user
password: somepass
# Register with activationkey (1-222333444) and enable extended update support. # Register with activationkey (1-222333444) and enable extended update support.
- rhn_register: state=present activationkey=1-222333444 enable_eus=true - rhn_register:
state: present
activationkey: 1-222333444
enable_eus: true
# Register with activationkey (1-222333444) and set a profilename which may differ from the hostname. # Register with activationkey (1-222333444) and set a profilename which may differ from the hostname.
- rhn_register: state=present activationkey=1-222333444 profilename=host.example.com.custom - rhn_register:
state: present
activationkey: 1-222333444
profilename: host.example.com.custom
# Register as user (joe_user) with password (somepass) against a satellite # Register as user (joe_user) with password (somepass) against a satellite
# server specified by (server_url). # server specified by (server_url).
- rhn_register: > - rhn_register:
state=present state: present
username=joe_user username: joe_user
password=somepass password: somepass'
server_url=https://xmlrpc.my.satellite/XMLRPC server_url: 'https://xmlrpc.my.satellite/XMLRPC'
# Register as user (joe_user) with password (somepass) and enable # Register as user (joe_user) with password (somepass) and enable
# channels (rhel-x86_64-server-6-foo-1) and (rhel-x86_64-server-6-bar-1). # channels (rhel-x86_64-server-6-foo-1) and (rhel-x86_64-server-6-bar-1).
- rhn_register: state=present username=joe_user - rhn_register:
password=somepass state: present
channels=rhel-x86_64-server-6-foo-1,rhel-x86_64-server-6-bar-1 username: joe_user
password: somepass
channels: rhel-x86_64-server-6-foo-1,rhel-x86_64-server-6-bar-1
''' '''
import sys import sys

Loading…
Cancel
Save