Support Red Hat Portal Activation Keys
Enable users of the role to not use username/password but activation key and org_id. Change-Id: I51941b851c55451377060993f951fcd68cacde0b
This commit is contained in:
parent
4c77ba509d
commit
a4d2420e60
|
@ -16,6 +16,8 @@ Role Variables
|
|||
|-------------------|---------------------|----------------------|
|
||||
| `rhn_username` | No default | Red Hat Portal username. |
|
||||
| `rhn_password` | No default | Red Hat Portal password. |
|
||||
| `rhn_activation_key` | No default | Red Hat Portal Activation Key. |
|
||||
| `rhn_org_id` | No default | Red Hat Portal Organization Identifier. |
|
||||
| `rhsub_state` | `enable` | Whether to enable or disable a Red Hat subscription. |
|
||||
| `rhsub_autosubscribe` | `yes` | Whether or not to autosubscibe to available repositories. |
|
||||
| `rhsub_repos` | `[undefined]` | If defined, the list of repositories to enable or disable. See `defaults/main.yml` for examples. |
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# These parameters aren't required, so no default is provided:
|
||||
# rhn_username: joe
|
||||
# rhn_password: secrete
|
||||
# rhn_activation_key: AAA-BBB-CCC-DDD
|
||||
# rhn_ord_id: 1234
|
||||
|
||||
rhsub_state: present # present or absent
|
||||
rhsub_autosubscribe: True
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
redhat_subscription:
|
||||
username: "{{ rhn_username|default(omit) }}"
|
||||
password: "{{ rhn_password|default(omit) }}"
|
||||
activationkey: "{{ rhn_activation_key|default(omit) }}"
|
||||
org_id: "{{ rhn_org_id|default(omit) }}"
|
||||
state: "{{ rhsub_state|default(omit) }}"
|
||||
autosubscribe: "{{ rhsub_autosubscribe|default(omit) }}"
|
||||
tags:
|
||||
|
|
Loading…
Reference in New Issue