mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-30 11:15:42 +02:00
Update to 2023-06-16 18:00
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
---
|
||||
|
||||
- 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 }}"
|
||||
@@ -9,19 +25,25 @@
|
||||
gpgcheck: True
|
||||
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
|
||||
enabled: "{{ item.enabled | default(True) }}"
|
||||
loop:
|
||||
- name: baseos
|
||||
file: almalinux
|
||||
dir: BaseOS
|
||||
- name: appstream
|
||||
file: almalinux
|
||||
dir: AppStream
|
||||
- name: crb
|
||||
file: almalinux
|
||||
dir: CRB
|
||||
- name: extras
|
||||
file: almalinux
|
||||
dir: extras
|
||||
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
|
||||
@@ -32,3 +54,4 @@
|
||||
|
||||
- include_tasks: postgres_client_{{ ansible_os_family }}.yml
|
||||
tags: always
|
||||
|
||||
|
Reference in New Issue
Block a user