summaryrefslogtreecommitdiffstats
path: root/playbooks/init/repos.yml
blob: 655a7e83a6f86670c9e4ce9cb79f1e5cc594ff53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
# l_scale_up_hosts may be passed in via prerequisites.yml during scaleup plays.

- name: Setup yum repositories for all hosts
  hosts: "{{ l_scale_up_hosts | default('oo_all_hosts') }}"
  gather_facts: no
  tasks:
  - name: subscribe instances to Red Hat Subscription Manager
    import_role:
      name: rhel_subscribe
    when:
    - ansible_distribution == 'RedHat'
    - openshift_deployment_type == 'openshift-enterprise'
    - rhsub_user is defined
    - rhsub_pass is defined
  - name: initialize openshift repos
    import_role:
      name: openshift_repos