summaryrefslogtreecommitdiffstats
path: root/test/integration/openshift_health_checker/preflight/playbooks/tasks/enable_repo.yml
blob: a41cb3c9aa46f0bc90de4fe3395de5b2decdd728 (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_name }}.repo
    section: "{{ repo_name }}"
    option: enabled
    value: "{{ repo_enabled | default(1) }}"