summaryrefslogtreecommitdiffstats
path: root/test/integration/openshift_health_checker/preflight/playbooks/tasks/enable_repo.yml
blob: 6022f4289712a710e5394e927248ec6e1b2950c3 (plain)
1
2
3
4
5
6
7
8
9
---
- name: Enable {{ repo_name }} repo
  # believe it or not we can't use the yum_repository module for this.
  # https://github.com/ansible/ansible-modules-extras/issues/2384
  ini_file:
    dest: /etc/yum.repos.d/{{ repo_file | default(repo_name) }}.repo
    section: "{{ repo_name }}"
    option: enabled
    value: "{{ repo_enabled | default(1) }}"