RETIRED, Ansible role to configure Red Hat Subscription Management
Go to file
Emilien Macchi a4d2420e60 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
2017-12-15 12:48:06 -08:00
ci-scripts Initial commit 2017-12-13 20:53:08 +00:00
defaults Support Red Hat Portal Activation Keys 2017-12-15 12:48:06 -08:00
library Initial commit 2017-12-13 20:53:08 +00:00
meta Change minimum Ansible version to 2.3 2017-12-12 10:39:29 -05:00
tasks Support Red Hat Portal Activation Keys 2017-12-15 12:48:06 -08:00
templates Configure rhsm.conf 2016-06-16 16:34:49 -04:00
tests Initial commit 2017-12-13 20:53:08 +00:00
vars Initial commit 2016-06-09 17:31:41 -04:00
.gitignore Initial commit 2017-12-13 20:53:08 +00:00
.gitreview Initial commit 2017-12-13 20:53:08 +00:00
LICENSE Initial commit 2017-12-13 20:53:08 +00:00
README.md Support Red Hat Portal Activation Keys 2017-12-15 12:48:06 -08:00
ansible-requirements.txt Initial commit 2017-12-13 20:53:08 +00:00
ansible.cfg Initial commit 2017-12-13 20:53:08 +00:00
requirements.txt Initial commit 2017-12-13 20:53:08 +00:00
setup.cfg Add library/ directory to setup.cfg 2017-12-14 12:42:53 +01:00
setup.py Initial commit 2017-12-13 20:53:08 +00:00
test-requirements.txt Initial commit 2017-12-13 20:53:08 +00:00
tox.ini Initial commit 2017-12-13 20:53:08 +00:00

README.md

Red Hat Subscription

Galaxy

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_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