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

removing yum loop

parent 1e73f321
No related branches found
No related tags found
1 merge request!417removing yum loop
......@@ -31,13 +31,17 @@
register: result
- name: "Install extra packages Redhat"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present enablerepo='Monash_University_EPEL7_EPEL_7_-_x86_64'"
with_items: "{{ extra_packages }}"
yum:
name: "{{ extra_packages }}"
exclude: "{{ excludes|join(',') }}"
update_cache: yes
state: present
enablerepo: Monash_University_EPEL7_EPEL_7_-_x86_64
become: true
become_user: root
when:
- '"DGX" in ansible_product_name'
- '"RedHat" in ansible_distribution'
- '"DGX" in ansible_product_name'
register: result
- name: "Install extra packages from epel only"
......
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