16 lines
437 B
YAML
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
|