Update to 2022-12-06 11:00

This commit is contained in:
Daniel Berteaud 2022-12-06 11:00:10 +01:00
parent 31daa03346
commit 000a87b1ae
2 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,39 @@
---
- name: Configure repositories
yum_repository:
file: "{{ item.file }}"
description: "Rocky {{ item.name }}"
name: "{{ item.name }}"
mirrorlist: https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo={{ item.dir }}-$releasever
baseurl: https://dl.rockylinux.org/pub/rocky/$releasever/{{ item.dir }}/$basearch/os/
gpgcheck: True
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
enabled: "{{ item.enabled | default(True) }}"
loop:
- name: baseos
file: Rocky-BaseOS
dir: BaseOS
- name: appstream
file: Rocky-AppStream
dir: AppStream
- name: extras
file: Rocky-Extras
dir: extras
- name: powertools
file: Rocky-PowerTools
dir: PowerTools
tags: repo
- name: Remove obsolete repo
file: path=/etc/yum.repos.d/{{ item }}.repo state=absent
loop:
- fws
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,34 @@
---
- name: Configure repositories
yum_repository:
file: "{{ item.file }}"
description: "Rocky {{ item.name }}"
name: "{{ item.name }}"
mirrorlist: https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo={{ item.dir }}-$releasever
baseurl: https://dl.rockylinux.org/pub/rocky/$releasever/{{ item.dir }}/$basearch/os/
gpgcheck: True
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
enabled: "{{ item.enabled | default(True) }}"
loop:
- name: baseos
file: Rocky-BaseOS
dir: BaseOS
- name: appstream
file: Rocky-AppStream
dir: AppStream
- name: extras
file: Rocky-Extras
dir: extras
- name: crb
file: Rocky-CRB
dir: CRB
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