ANSIBLE.RHN_REGISTER(3)         ANSIBLE MODULES        ANSIBLE.RHN_REGISTER(3)



NAME
       rhn_register - Manage Red Hat Network registration using the
       C(rhnreg_ks) command

DESCRIPTION
       Manage registration to the Red Hat Network.

OPTIONS
       activationkey
              supply an activation key for use with registration

       channels
              Optionally specify a list of comma-separated channels to
              subscribe to upon successful registration.

       password
              Red Hat Network password

       server_url
              Specify an alternative Red Hat Network server URL (default:
              Current value of I(serverURL) from C(/etc/sysconfig/rhn/up2date)
              is the default)

       state  whether to register (present), or unregister (absent) a system
              Choices: present,absent. (default: present)

       username
              Red Hat Network username.

NOTES
       In order to register a system, rhnreg_ks requires either a username and
       password, or an activationkey.

EXAMPLES
       # Unregister system from RHN.
       - 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

       # Register with activationkey (1-222333444) and enable extended update support.
       - rhn_register: state=present activationkey=1-222333444 enable_eus=true

       # 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

       # 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



AUTHOR
       James Laska

SEE ALSO
       ansible(1), http://ansible.github.com/modules.html#rhn-register



1.4.5                             2014-02-12           ANSIBLE.RHN_REGISTER(3)
