xoxys.yum/tasks/repository.yml
Robert Kaussow 336e264b09
All checks were successful
continuous-integration/drone/push Build is passing
add options for repo sslverify and gpgcheck
2019-11-21 11:56:33 +01:00

18 lines
498 B
YAML

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