Skip to content
Snippets Groups Projects
Commit 2dbcd179 authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

added option to enable epel repo

Former-commit-id: 732e5751
parent 89470770
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,15 @@
with_items: "{{ extra_packages }}"
become: true
become_user: root
when: ansible_os_family == 'RedHat'
when: ansible_os_family == 'RedHat' and useEpel is not defined
register: result
- name: "Install extra packages with the epel repo enabled"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present enablerepo=epel"
with_items: "{{ extra_packages }}"
become: true
become_user: root
when: ansible_os_family == 'RedHat' and useEpel is defined
register: result
- name: "Show yum install output"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment