Skip to content
Snippets Groups Projects
Commit 8aac4b22 authored by Trung Nguyen's avatar Trung Nguyen
Browse files

Merge branch 'addEpelToExtraPackages' into 'master'

Add epel to extra packages

See merge request hpc-team/ansible_cluster_in_a_box!255

Former-commit-id: 828be444
parents cd21cfc8 428d7229
No related branches found
No related tags found
No related merge requests found
This role adds all the packages we think are useful but aren't clearly a dependency of some function.
Before calling, you may want to define the following lists:
extra_packages #list of yum packages. Or see code on how to it loads an alternative file if not defined
exclude #list of packages to exclude
Usage:
roles:
- { role: extra_packages, tags: [ other, extra_packages ] }
......@@ -13,12 +13,12 @@
become: true
when: ansible_os_family == 'RedHat'
- name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
- 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'
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