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@xxxxxxxxxx> -- Andrea Bolognani / Red Hat / Virtualization -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list