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

Removed unecessary 2nd task as extra_packages is only for epel

parent 66896e7e
No related branches found
No related tags found
1 merge request!255Add epel to extra packages
...@@ -13,20 +13,12 @@ ...@@ -13,20 +13,12 @@
sudo: true sudo: true
when: ansible_os_family == 'RedHat' 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" - name: "Install extra packages with the epel repo enabled"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present enablerepo=epel" yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present enablerepo=epel"
with_items: "{{ extra_packages }}" with_items: "{{ extra_packages }}"
become: true become: true
become_user: root become_user: root
when: ansible_os_family == 'RedHat' and useEpel is defined when: ansible_os_family == 'RedHat'
register: result register: result
- name: "Show yum install output" - 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