Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.4 KiB

---
- include_tasks: base_{{ ansible_distribution }}{{ ansible_distribution_major_version }}.yml
tags: repo
- include_tasks: epel_{{ ansible_distribution }}{{ ansible_distribution_major_version }}.yml
tags: repo
- name: Configure FWS repository
yum_repository:
name: fws
description: "Firewall Services"
baseurl: http://repo.firewall-services.com/centos/$releasever/
gpgcheck: True
gpgkey: http://repo.firewall-services.com/RPM-GPG-KEY
tags: repo
- name: Configure FWS Testing repository
yum_repository:
name: fws-testing
description: "Firewall Services Testing"
file: fws
baseurl: http://repo.firewall-services.com/centos-testing/$releasever/
gpgcheck: True
gpgkey: http://repo.firewall-services.com/RPM-GPG-KEY
enabled: False
tags: repo
- name: Configure latest PostgreSQL repository
yum_repository:
name: postgresql-client
description: PostgreSQL
baseurl: https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch
gpgcheck: True
gpgkey: https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-13
state: "{{ repo_postgres | ternary('present','absent') }}"
includepkgs: postgresql13 postgresql13-libs
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
tags: repo
...