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

Removed unecessary 2nd task as extra_packages is only for epel

Former-commit-id: 8619cec7
parent d336f307
No related branches found
No related tags found
No related merge requests found
......@@ -13,20 +13,12 @@
sudo: true
when: ansible_os_family == 'RedHat'
- name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
with_items: "{{ extra_packages }}"
become: true
become_user: root
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
when: ansible_os_family == 'RedHat'
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