Fix one issue (#52370)
This commit is contained in:
parent
6ac22416af
commit
b4802350ec
1 changed files with 16 additions and 18 deletions
|
@ -1,18 +1,16 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# (c) James Laska
|
# Copyright: (c) James Laska
|
||||||
#
|
|
||||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
'status': ['preview'],
|
'status': ['preview'],
|
||||||
'supported_by': 'community'}
|
'supported_by': 'community'}
|
||||||
|
|
||||||
|
|
||||||
DOCUMENTATION = r'''
|
DOCUMENTATION = r'''
|
||||||
---
|
---
|
||||||
module: rhn_register
|
module: rhn_register
|
||||||
|
@ -24,47 +22,47 @@ author:
|
||||||
- James Laska (@jlaska)
|
- James Laska (@jlaska)
|
||||||
notes:
|
notes:
|
||||||
- This is for older Red Hat products. You probably want the M(redhat_subscription) module instead.
|
- This is for older Red Hat products. You probably want the M(redhat_subscription) module instead.
|
||||||
- In order to register a system, rhnreg_ks requires either a username and password, or an activationkey.
|
- In order to register a system, C(rhnreg_ks) requires either a username and password, or an activationkey.
|
||||||
requirements:
|
requirements:
|
||||||
- rhnreg_ks
|
- rhnreg_ks
|
||||||
- either libxml2 or lxml
|
- either libxml2 or lxml
|
||||||
options:
|
options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- whether to register (C(present)), or unregister (C(absent)) a system
|
- Whether to register (C(present)), or unregister (C(absent)) a system.
|
||||||
type: str
|
type: str
|
||||||
choices: [ absent, present ]
|
choices: [ absent, present ]
|
||||||
default: present
|
default: present
|
||||||
username:
|
username:
|
||||||
description:
|
description:
|
||||||
- Red Hat Network username
|
- Red Hat Network username.
|
||||||
type: str
|
type: str
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- Red Hat Network password
|
- Red Hat Network password.
|
||||||
type: str
|
type: str
|
||||||
server_url:
|
server_url:
|
||||||
description:
|
description:
|
||||||
- Specify an alternative Red Hat Network server URL
|
- Specify an alternative Red Hat Network server URL.
|
||||||
- The default is the current value of I(serverURL) from C(/etc/sysconfig/rhn/up2date).
|
- The default is the current value of I(serverURL) from C(/etc/sysconfig/rhn/up2date).
|
||||||
type: str
|
type: str
|
||||||
activationkey:
|
activationkey:
|
||||||
description:
|
description:
|
||||||
- supply an activation key for use with registration
|
- Supply an activation key for use with registration.
|
||||||
type: str
|
type: str
|
||||||
profilename:
|
profilename:
|
||||||
description:
|
description:
|
||||||
- supply an profilename for use with registration
|
- Supply an profilename for use with registration.
|
||||||
type: str
|
type: str
|
||||||
version_added: "2.0"
|
version_added: "2.0"
|
||||||
sslcacert:
|
sslcacert:
|
||||||
description:
|
description:
|
||||||
- supply a custom ssl CA certificate file for use with registration
|
- Supply a custom ssl CA certificate file for use with registration.
|
||||||
type: str
|
type: path
|
||||||
version_added: "2.1"
|
version_added: "2.1"
|
||||||
systemorgid:
|
systemorgid:
|
||||||
description:
|
description:
|
||||||
- supply an organizational id for use with registration
|
- Supply an organizational id for use with registration.
|
||||||
type: str
|
type: str
|
||||||
version_added: "2.1"
|
version_added: "2.1"
|
||||||
channels:
|
channels:
|
||||||
|
@ -79,7 +77,7 @@ options:
|
||||||
default: no
|
default: no
|
||||||
nopackages:
|
nopackages:
|
||||||
description:
|
description:
|
||||||
- If C(yes), the registered node will not upload its installed packages information to Satellite server
|
- If C(yes), the registered node will not upload its installed packages information to Satellite server.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: no
|
||||||
version_added: "2.5"
|
version_added: "2.5"
|
||||||
|
@ -102,7 +100,7 @@ EXAMPLES = r'''
|
||||||
rhn_register:
|
rhn_register:
|
||||||
state: present
|
state: present
|
||||||
activationkey: 1-222333444
|
activationkey: 1-222333444
|
||||||
enable_eus: true
|
enable_eus: yes
|
||||||
|
|
||||||
- name: Register with activationkey and set a profilename which may differ from the hostname
|
- name: Register with activationkey and set a profilename which may differ from the hostname
|
||||||
rhn_register:
|
rhn_register:
|
||||||
|
@ -114,7 +112,7 @@ EXAMPLES = r'''
|
||||||
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
|
||||||
|
|
||||||
- name: Register as user with password and enable channels
|
- name: Register as user with password and enable channels
|
||||||
|
@ -125,7 +123,7 @@ EXAMPLES = r'''
|
||||||
channels: rhel-x86_64-server-6-foo-1,rhel-x86_64-server-6-bar-1
|
channels: rhel-x86_64-server-6-foo-1,rhel-x86_64-server-6-bar-1
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = r'''
|
||||||
# Default return values
|
# Default return values
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue