diff options
author | Mark Lamourine <markllama@gmail.com> | 2017-12-18 18:53:09 +0000 |
---|---|---|
committer | Mark Lamourine <markllama@gmail.com> | 2017-12-18 20:31:09 +0000 |
commit | 0c0cdae27567f65e38be4c56d0c2060dc821d156 (patch) | |
tree | 9fc4dcf604ea857223ff37e3936d4a5dc7cd2f5a /playbooks/openstack/openshift-cluster | |
parent | b713000887c5ef1d84d376038aacd0c6966d1692 (diff) | |
download | openshift-0c0cdae27567f65e38be4c56d0c2060dc821d156.tar.gz openshift-0c0cdae27567f65e38be4c56d0c2060dc821d156.tar.bz2 openshift-0c0cdae27567f65e38be4c56d0c2060dc821d156.tar.xz openshift-0c0cdae27567f65e38be4c56d0c2060dc821d156.zip |
set repos after registration: convert to match task -> import_role model.
Diffstat (limited to 'playbooks/openstack/openshift-cluster')
-rw-r--r-- | playbooks/openstack/openshift-cluster/provision.yml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/playbooks/openstack/openshift-cluster/provision.yml b/playbooks/openstack/openshift-cluster/provision.yml index 0a69952df..fa5c91ace 100644 --- a/playbooks/openstack/openshift-cluster/provision.yml +++ b/playbooks/openstack/openshift-cluster/provision.yml @@ -47,14 +47,22 @@ hosts: oo_all_hosts become: yes gather_facts: yes - roles: - - role: rhel_subscribe + tasks: + - name: Subscribe RHEL instances + include_role: + name: rhel_subscribe when: - ansible_distribution == "RedHat" - rhsub_user is defined - rhsub_pass is defined - tasks: + - name: Enable required YUM repositories + include_role: + name: openshift_repos + when: + - ansible_distribution == "RedHat" + - rh_subscribed is defined + - name: Install dependencies include_role: name: openshift_openstack |