
2 Oct
2019
2 Oct
'19
6:20 p.m.
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@redhat.com> -- Andrea Bolognani / Red Hat / Virtualization