]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commit
move Red Hat entitlements into "common" role
authorKen Dreyer <kdreyer@redhat.com>
Tue, 31 Mar 2015 00:04:35 +0000 (18:04 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 2 Apr 2015 14:02:29 +0000 (08:02 -0600)
commit3d1ecaac01f9ed7a589741700fdb7fc22056218c
tree01e562c673d1265afec98abd5f54bab2e6709d17
parentdfe1c59032ab079052b27b246e7c93a852f70a75
move Red Hat entitlements into "common" role

Prior to this commit, entitling a system with Red Hat was a part of the
testnode role.

Move the Red Hat entitlement tasks into a new "common" role so that it
can apply to other systems besides testnodes.

This will allow us to register other systems to consume updates from Red
Hat's CDN.

Also, switch the "when" clause to evalute "ansible_distribution" instead
of "ansible_os_family". Prior to this change, Ansible would include
setup-redhat.yml on RHEL, Fedora and CentOS. The ansible_os_family fact
was overly-broad there, because we do not want to run
subscription-manager on Fedora and CentOS.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
roles/common/meta/main.yml [new file with mode: 0644]
roles/common/tasks/main.yml [new file with mode: 0644]
roles/common/tasks/rhel-entitlements.yml [new file with mode: 0644]
roles/testnode/tasks/redhat/entitlements.yml [deleted file]
roles/testnode/tasks/setup-redhat.yml
testnodes.yml