2018-11-15 20:38:39 +00:00
|
|
|
---
|
|
|
|
- name: Add common yum repositories
|
|
|
|
yum_repository:
|
2019-08-27 06:32:50 +00:00
|
|
|
name: "{{ item.name }}"
|
|
|
|
file: "{{ item.filename }}"
|
|
|
|
description: "{{ item.desc }}"
|
|
|
|
baseurl: "{{ item.baseurl }}"
|
|
|
|
gpgkey: "{{ item.gpgkey }}"
|
2019-11-21 10:52:01 +00:00
|
|
|
gpgcheck: "{{ item.gpgcheck | default('yes') }}"
|
|
|
|
sslverify: "{{ item.sslverify | default('yes') }}"
|
2019-08-27 06:32:50 +00:00
|
|
|
enabled: "{{ item.enabled }}"
|
|
|
|
loop: "{{ yum_repositories }}"
|
2018-11-15 20:38:39 +00:00
|
|
|
loop_control:
|
2019-08-27 06:32:50 +00:00
|
|
|
label: "{{ item.name }}"
|
2018-11-15 20:38:39 +00:00
|
|
|
notify: __yum_upgrade
|
|
|
|
become: True
|
|
|
|
become_user: root
|