[libvirt] [jenkins-ci PATCH 03/17] guests: Install EPEL on CentOS7
Andrea Bolognani
abologna at redhat.com
Wed Oct 2 18:20:49 UTC 2019
On Tue, 2019-10-01 at 16:28 +0200, Fabiano Fidêncio wrote:
> +- name: Enable EPEL
> + command: '{{ package_manager }} install epel-release -y'
> + args:
> + warn: no
> + when:
> + - os_name == 'CentOS'
> +
At this point in the playbook the package module has been properly
bootstrapped (as evidenced by the fact that it's used immediately
afterwards), so we can do this like
- name: Enable EPEL repository
package:
name: epel-release
state: latest
when:
- os_name == 'CentOS'
With that changed,
Reviewed-by: Andrea Bolognani <abologna at redhat.com>
--
Andrea Bolognani / Red Hat / Virtualization
More information about the libvir-list
mailing list