fix: fix yum.repos.d path
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2023-02-19 16:43:13 +01:00
parent 4410f91564
commit 2e81c2067e
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -1,17 +1,17 @@
---
- block:
- name: Remove repositories
- name: Remove repository files
file:
name: "/etc/packages.repos.d/{{ item }}"
name: "/etc/yum.repos.d/{{ item }}"
state: absent
loop: "{{ packages_repofiles_remove }}"
loop_control:
label: "/etc/packages.repos.d/{{ item }}"
label: "/etc/yum.repos.d/{{ item }}"
- name: Add common repositories
yum_repository:
name: "{{ item.name }}"
file: "{{ item.filename }}"
file: "{{ item.filename | default(omit) }}"
description: "{{ item.desc | default(omit) }}"
baseurl: "{{ item.baseurl | default(omit) }}"
gpgkey: "{{ item.gpgkey | default(omit) }}"