2021-12-01 19:13:34 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Configure base repositories
|
|
|
|
yum_repository:
|
|
|
|
file: CentOS-Base
|
|
|
|
description: "Centos - {{ item.repo }}"
|
|
|
|
name: "{{ item.repo }}"
|
2024-08-28 12:00:16 +02:00
|
|
|
baseurl: https://vault.centos.org/7.9.2009/{{ item.dir }}/$basearch/
|
2021-12-01 19:13:34 +01:00
|
|
|
gpgcheck: True
|
|
|
|
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
|
|
|
|
exclude: 'lasso*'
|
|
|
|
loop:
|
|
|
|
- repo: base
|
|
|
|
dir: os
|
|
|
|
- repo: updates
|
|
|
|
dir: updates
|
|
|
|
- repo: extras
|
|
|
|
dir: extras
|
|
|
|
tags: repo
|
|
|
|
|
|
|
|
- name: Configure centosplus
|
|
|
|
yum_repository:
|
|
|
|
file: CentOS-Base
|
|
|
|
description: "Centos - centosplus"
|
|
|
|
name: centosplus
|
2024-07-16 10:00:10 +02:00
|
|
|
baseurl: https://vault.centos.org/7.9.2009/centosplus/$basearch/
|
2021-12-01 19:13:34 +01:00
|
|
|
gpgcheck: True
|
|
|
|
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
|
|
|
|
enabled: False
|
|
|
|
tags: repo
|
|
|
|
|
|
|
|
- name: Install yum priorities plugin
|
|
|
|
yum:
|
|
|
|
name:
|
|
|
|
- yum-plugin-priorities
|
|
|
|
tags: repo
|
|
|
|
|
|
|
|
- name: Remove obsolete repo
|
|
|
|
file: path=/etc/yum.repos.d/{{ item }}.repo state=absent
|
|
|
|
loop:
|
|
|
|
- nux-dextop
|
|
|
|
- seadrive
|
|
|
|
- remi-safe
|
|
|
|
- redis
|
|
|
|
- fws-extra-nginx
|
|
|
|
- CentOS-Linux-BaseOS
|
2022-03-07 15:00:06 +01:00
|
|
|
- fws
|
2021-12-01 19:13:34 +01:00
|
|
|
tags: repo
|
|
|
|
|
2022-03-07 15:00:06 +01:00
|
|
|
- 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
|