mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-19 11:43:16 +02:00
35 lines
998 B
YAML
35 lines
998 B
YAML
![]() |
---
|
||
|
|
||
|
- 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
|