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

merge from master

parents b471a134 828be444
No related branches found
No related tags found
1 merge request!297Cicd merge back
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 }} update_cache=yes state=present enablerepo=epel" # exclude={{ excludes|join(',') }}
- 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: "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