kayobe/ansible/dnf.yml
Mark Goddard dc32b52f08 CentOS 8: Support DNF
Adds support for configuration of DNF repo mirrors for CentOS and EPEL
repositories, as well as custom repositories.

Adds support for DNF automatic, which is a replacement for yum-cron.

Configuration is backwards compatible, falling back to the equivalent
yum variables when DNF variables have not been overridden.

Change-Id: I8bef5e9c8e1c77c25d6077ff690da8f2cde6a643
Story: 2006574
Task: 38922
2020-03-19 11:23:39 +00:00

17 lines
376 B
YAML

---
- name: Ensure DNF repos are configured
hosts: seed-hypervisor:seed:overcloud
tags:
- dnf
tasks:
- block:
- import_role:
name: dnf
- import_role:
name: dnf-automatic
tags:
- dnf-automatic
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version | int >= 8