Robert Kaussow
15c2048d48
All checks were successful
continuous-integration/drone/push Build is passing
28 lines
897 B
YAML
28 lines
897 B
YAML
---
|
|
- block:
|
|
- name: Add common yum repositories
|
|
yum_repository:
|
|
name: "{{ item.name }}"
|
|
file: "{{ item.filename }}"
|
|
description: "{{ item.desc | default(omit) }}"
|
|
baseurl: "{{ item.baseurl | default(omit) }}"
|
|
gpgkey: "{{ item.gpgkey | default(omit) }}"
|
|
gpgcheck: "{{ item.gpgcheck | default('yes') }}"
|
|
sslverify: "{{ item.sslverify | default('yes') }}"
|
|
enabled: "{{ item.enabled | default('yes') }}"
|
|
state: "{{ item.state | default('present') }}"
|
|
loop: "{{ yum_repositories }}"
|
|
loop_control:
|
|
label: "{{ item.name }}"
|
|
notify: __yum_upgrade
|
|
|
|
- name: Remove repo files
|
|
file:
|
|
name: "/etc/yum.repos.d/{{ item }}"
|
|
state: absent
|
|
loop: "{{ yum_repofiles_remove }}"
|
|
loop_control:
|
|
label: "/etc/yum.repos.d{{ item }}"
|
|
become: True
|
|
become_user: root
|