Skip to content
Snippets Groups Projects
Commit e8a7f328 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

introducing a second var in c7packages to differenciate between source repositories

parent 01aa1ece
No related branches found
No related tags found
1 merge request!297Cicd merge back
......@@ -14,13 +14,20 @@
when: ansible_os_family == 'RedHat'
- name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
yum: "name={{ item }} update_cache=yes state=present enablerepo=epel" # exclude={{ excludes|join(',') }}
with_items: "{{ extra_packages }}"
become: true
become_user: root
when: ansible_os_family == 'RedHat'
register: result
- name: "Install extra packages from epel only"
yum: "name={{ item }} update_cache=yes state=present enablerepo=epel" # exclude={{ excludes|join(',') }}
with_items: "{{ extra_packages_epel }}"
become: true
become_user: root
when: ansible_os_family == 'RedHat'
- name: "Show yum install output"
debug:
msg: "{{ result.results }}"
......
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