Update to 2025-08-22 17:00

This commit is contained in:
Daniel Berteaud
2025-08-22 17:00:22 +02:00
parent 901dd82ae1
commit c746f32851
10 changed files with 332 additions and 1 deletions

View File

@@ -0,0 +1,57 @@
---
- set_fact:
base_repos:
- name: baseos
file: almalinux
dir: BaseOS
- name: appstream
file: almalinux
dir: AppStream
- name: crb
file: almalinux
dir: CRB
- name: extras
file: almalinux
dir: extras
tags: repo
- name: Configure repositories
yum_repository:
file: "{{ item.file }}"
description: "AlmaLinux {{ item.name }}"
name: "{{ item.name }}"
baseurl: https://repo.almalinux.org/almalinux/$releasever/{{ item.dir }}/$basearch/os/
gpgcheck: True
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-10
enabled: "{{ item.enabled | default(True) }}"
loop: "{{ base_repos }}"
tags: repo
- name: Empty default file
yum_repository:
file: almalinux-{{ item.name }}
name: "{{ item.name }}"
state: absent
loop: "{{ base_repos }}"
tags: repo
#- name: Configure COPR for FusionInventory
# yum_repository:
# name: fusioninventory
# description: Copr repo for FusionInventory
# file: fusioninventory
# baseurl: https://download.copr.fedorainfracloud.org/results/frsoftware/FusionInventory/epel-$releasever-$basearch/
# gpgcheck: True
# gpgkey: https://download.copr.fedorainfracloud.org/results/frsoftware/FusionInventory/pubkey.gpg
# tags: repo
- include_tasks: epel_{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml
tags: always
- include_tasks: dbd_{{ ansible_os_family }}.yml
tags: always
- include_tasks: postgres_client_{{ ansible_os_family }}.yml
tags: always

View File

@@ -0,0 +1,12 @@
---
- name: Configure EPEL repository
yum_repository:
name: epel
description: "Extra Package for Enterprise Linux"
baseurl: https://fr2.rpmfind.net/linux/epel/$releasever/Everything/$basearch https://mirror.in2p3.fr/pub/epel/$releasever/Everything/$basearch
gpgcheck: True
gpgkey: https://mirror.in2p3.fr/pub/epel/RPM-GPG-KEY-EPEL-10
exclude: dehydrated,zabbix*
tags: repo