xoxys.yum/tasks/repository.yml

16 lines
390 B
YAML

---
- name: Add common yum repositories
yum_repository:
name: "{{ item.name }}"
file: "{{ item.filename }}"
description: "{{ item.desc }}"
baseurl: "{{ item.baseurl }}"
gpgkey: "{{ item.gpgkey }}"
enabled: "{{ item.enabled }}"
loop: "{{ yum_repositories }}"
loop_control:
label: "{{ item.name }}"
notify: __yum_upgrade
become: True
become_user: root