summaryrefslogtreecommitdiffstats
path: root/playbooks/init/repos.yml
blob: 4967b8f134b3d6f5706e253f40eea1d443fb4120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: Setup yum repositories for all hosts
  hosts: oo_all_hosts
  gather_facts: no
  tasks:
  - name: subscribe instances to Red Hat Subscription Manager
    include_role:
      name: rhel_subscribe
    when:
    - ansible_distribution == 'RedHat'
    - deployment_type == 'openshift-enterprise'
    - (rhel_subscription_user or rhsub_user) is defined
    - (rhel_subscription_password or rhsub_pass) is defined
  - name: initialize openshift repos
    include_role:
      name: openshift_repos