RETIRED, Ansible role to configure Red Hat Subscription Management
Go to file
Sam Doran d1417155c6 Use redhat_repos module for mananging repos.
The module needs some work in order to operate efficiently. Currently
it always runs and reports a change. Additionally, calling it using a loop
results in multiple runs of the subscription-manager tool, which is quite
slow.
2016-11-11 13:38:41 -05:00
defaults Configure rhsm.conf 2016-06-16 16:34:49 -04:00
library Use redhat_repos module for mananging repos. 2016-11-11 13:38:41 -05:00
meta Initial commit 2016-06-09 17:31:41 -04:00
tasks Use redhat_repos module for mananging repos. 2016-11-11 13:38:41 -05:00
templates Configure rhsm.conf 2016-06-16 16:34:49 -04:00
tests Use redhat_repos module for mananging repos. 2016-11-11 13:38:41 -05:00
vars Initial commit 2016-06-09 17:31:41 -04:00
.travis.yml Initial commit 2016-06-09 17:31:41 -04:00
README.md Use redhat_repos module for mananging repos. 2016-11-11 13:38:41 -05: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 {{ lookup('env', 'RHN_USERNAME') }} Red Hat Portal username.
rhn_password {{ lookup('env', 'RHN_PASSWORD') }} Red Hat Portal password.
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

MIT