xoxys.yum/tasks/repository.yml
2018-11-15 21:38:39 +01:00

16 lines
437 B
YAML

---
- name: Add common yum repositories
yum_repository:
name: "{{ item.key }}"
file: "{{ item.value.filename }}"
description: "{{ item.value.desc }}"
baseurl: "{{ item.value.baseurl }}"
gpgkey: "{{ item.value.gpgkey }}"
enabled: "{{ item.value.enabled }}"
with_dict: "{{ yum_repositories | default({}) }}"
loop_control:
label: "{{ item.key }}"
notify: __yum_upgrade
become: True
become_user: root