add-yum-repos.yml 283 B

123456789101112
  1. ---
  2. - hosts: cluster_hosts
  3. vars:
  4. yum_repos: []
  5. tasks:
  6. # enable additional yum repos
  7. - name: Add repository
  8. yum_repository:
  9. name: "{{ item.name }}"
  10. description: "{{ item.description }}"
  11. baseurl: "{{ item.baseurl }}"
  12. with_items: "{{ yum_repos }}"