diff options
author | Sam Doran <sdoran@ansible.com> | 2016-10-12 18:05:56 -0400 |
---|---|---|
committer | Sam Doran <sdoran@ansible.com> | 2016-11-15 14:55:33 -0500 |
commit | f6025edad254f768f69b52a16e1c764200a2e58b (patch) | |
tree | ff1e00533d2eb165b8e682ebc7b5721a48edfbd8 | |
parent | db5076cd8a0013cf4ec7cda211e845213ea7475a (diff) | |
download | ansible-modules-core-f6025edad254f768f69b52a16e1c764200a2e58b.tar.gz |
Change example syntax on rhn_register module
-rw-r--r-- | packaging/os/rhn_register.py | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/packaging/os/rhn_register.py b/packaging/os/rhn_register.py index f30cf090..8908e448 100644 --- a/packaging/os/rhn_register.py +++ b/packaging/os/rhn_register.py @@ -83,30 +83,44 @@ options: EXAMPLES = ''' # 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. -- 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. -- 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. -- 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 # server specified by (server_url). -- rhn_register: > - state=present - username=joe_user - password=somepass - server_url=https://xmlrpc.my.satellite/XMLRPC +- rhn_register: + state: present + username: joe_user + password: somepass' + server_url: 'https://xmlrpc.my.satellite/XMLRPC' # 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). -- rhn_register: state=present username=joe_user - password=somepass - channels=rhel-x86_64-server-6-foo-1,rhel-x86_64-server-6-bar-1 +- rhn_register: + state: present + username: joe_user + password: somepass + channels: rhel-x86_64-server-6-foo-1,rhel-x86_64-server-6-bar-1 ''' import sys |