d4e81a1af9
Change-Id: I9adf771ce5fe72efeb3225b6c2329ada479ca4d3 |
||
---|---|---|
ci-scripts | ||
defaults | ||
library | ||
meta | ||
tasks | ||
templates | ||
tests | ||
vars | ||
.gitignore | ||
.gitreview | ||
LICENSE | ||
README.md | ||
ansible-requirements.txt | ||
ansible.cfg | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.md
Red Hat Subscription
Manage Red Hat subscritions and repositories.
Requirements
Current Red Hat subscription.
Role Variables
Name | Default Value | Description |
---|---|---|
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_method |
portal |
Set to portal or satellite depending on where you are registering. |
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. |
Dependencies
None.
Example Playbook
- hosts: all
vars:
rhn_username: bob.smith@acme.com
rhn_password: "{{ vault_rhn_password }}"
rhsub_repos:
- name: rhel-7-server-extras-rpms
state: present
- name: rhel-7-server-rh-common-rpms
- name: rhel-7-server-openstack-8-rpms
roles:
- samdoran.redhat-subscription
License
Apache 2.0