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

shrinking the list of extra packages by ~250 removing ones present in the...

shrinking the list of extra packages by ~250 removing ones present in the image. Changing role from loop to array
parent d68eb55f
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
- include_vars: vars/filesystems.yml - include_vars: vars/filesystems.yml
- include_vars: vars/slurm.yml - include_vars: vars/slurm.yml
- include_vars: vars/vars.yml - include_vars: vars/vars.yml
- include_vars: vars/c7packages.yml
- { name: set use shared state, set_fact: usesharedstatedir=False } - { name: set use shared state, set_fact: usesharedstatedir=False }
tags: [ always ] tags: [ always ]
...@@ -90,7 +91,7 @@ ...@@ -90,7 +91,7 @@
- { role: slurm-start, start_slurmd: True, tags: [ slurm, slurm-start ] } - { role: slurm-start, start_slurmd: True, tags: [ slurm, slurm-start ] }
- { role: vncserver, tags: [ other ] } - { role: vncserver, tags: [ other ] }
- { role: jasons_ssh_ca, tags: [ other ] } - { role: jasons_ssh_ca, tags: [ other ] }
#- { role: extra_packages, tags: [ other, extra_packages ] } # commented because it takes forever! good enough if this gets tested on clusterbuild - { role: extra_packages, tags: [ other, extra_packages ] } # commented because it takes forever! good enough if this gets tested on clusterbuild
- { role: telegraf, telegraf_install_rpm_url: 'http://consistency0/src/telegraf-1.12.6-1.x86_64.rpm', tags: [ monitoring,SiteSpecific ] } - { role: telegraf, telegraf_install_rpm_url: 'http://consistency0/src/telegraf-1.12.6-1.x86_64.rpm', tags: [ monitoring,SiteSpecific ] }
- hosts: 'VisNodes' - hosts: 'VisNodes'
......
...@@ -19,16 +19,19 @@ ...@@ -19,16 +19,19 @@
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
changed_when: '"No unfinished transactions left." not in yumCompleteTransactioncall.stdout' changed_when: '"No unfinished transactions left." not in yumCompleteTransactioncall.stdout'
- name: "Install extra packages" - name: "Install extra packages Centos"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present" yum:
with_items: "{{ extra_packages }}" name: "{{ extra_packages }}"
exclude: "{{ excludes|join(',') }}"
update_cache: yes
state: present
become: true become: true
become_user: root become_user: root
when: when:
- '"CentOS" in ansible_distribution' - '"CentOS" in ansible_distribution'
register: result register: result
- name: "Install extra packages" - name: "Install extra packages Redhat"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present enablerepo='Monash_University_EPEL7_EPEL_7_-_x86_64'" yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present enablerepo='Monash_University_EPEL7_EPEL_7_-_x86_64'"
with_items: "{{ extra_packages }}" with_items: "{{ extra_packages }}"
become: true become: true
...@@ -38,18 +41,12 @@ ...@@ -38,18 +41,12 @@
- '"RedHat" in ansible_distribution' - '"RedHat" in ansible_distribution'
register: result register: result
- 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:
- '"CentOS" in ansible_distribution'
register: result
- name: "Install extra packages from epel only" - name: "Install extra packages from epel only"
yum: "name={{ item }} update_cache=yes state=present enablerepo=epel" # exclude={{ excludes|join(',') }} yum:
with_items: "{{ extra_packages_epel }}" name: "{{ extra_packages_epel }}"
update_cache: yes
state: present
enablerepo: epel" # exclude={{ excludes|join(',') }}
become: true become: true
become_user: root become_user: root
when: when:
......
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