xoxys.yum/tasks/repository.yml

16 lines
437 B
YAML
Raw Normal View History

2018-11-15 20:38:39 +00:00
---
- 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