enable_repo.yml 354 B

123456789
  1. ---
  2. - name: Enable {{ repo_name }} repo
  3. # believe it or not we can't use the yum_repository module for this.
  4. # https://github.com/ansible/ansible-modules-extras/issues/2384
  5. ini_file:
  6. dest: /etc/yum.repos.d/{{ repo_file | default(repo_name) }}.repo
  7. section: "{{ repo_name }}"
  8. option: enabled
  9. value: "{{ repo_enabled | default(1) }}"