Skip to content
Snippets Groups Projects
Commit 4f522d4d authored by Gin Tan's avatar Gin Tan
Browse files

Merge branch 'trungbm' into 'master'

baremetal roles

See merge request hpc-team/ansible_cluster_in_a_box!281

Former-commit-id: 0fe6bfe0
parents cb30fa6c e8e157fb
No related branches found
No related tags found
No related merge requests found
---
- name: install collectd
yum: name=collectd state=installed
- name: install collectd - CentOS
yum: name=collectd state=installed enablerepo=epel
when:
- '"CentOS" in ansible_distribution'
become: true
become_user: root
- name: install collectd - RHEL7
yum: name=collectd state=installed enablerepo="Monash_University_EPEL7_EPEL_7_-_x86_64"
when:
- '"DGX" in ansible_product_name'
- '"RedHat" in ansible_distribution'
become: true
become_user: root
......
......@@ -6,12 +6,33 @@
- name: "Clear yum cache"
command: yum clean all
become: true
become_user: root
when: ansible_os_family == 'RedHat'
- name: "Clear yum pending transactions"
command: yum-complete-transaction --cleanup-only
become: true
become_user: root
when: ansible_os_family == 'RedHat'
- name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
with_items: "{{ extra_packages }}"
become: true
become_user: root
when:
- '"CentOS" in ansible_distribution'
register: result
- name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present enablerepo='Monash_University_EPEL7_EPEL_7_-_x86_64'"
with_items: "{{ extra_packages }}"
become: true
become_user: root
when:
- '"DGX" in ansible_product_name'
- '"RedHat" in ansible_distribution'
register: result
- name: "Install extra packages with the epel repo enabled"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present enablerepo=epel"
......
......@@ -12,7 +12,24 @@
- gcc
- lua-devel
become: true
when: ansible_os_family == 'RedHat'
when:
- '"CentOS" in ansible_distribution'
- name: install lua RHEL7
yum: name={{ item }} state=installed update_cache=yes enablerepo="Monash_University_EPEL7_EPEL_7_-_x86_64"
with_items:
- lua
- lua-filesystem
- lua-posix
- tcl
- rsync
- gcc
- lua-devel
when:
- '"DGX" in ansible_product_name'
- '"RedHat" in ansible_distribution'
become: true
- name: install lua debian
apt: name={{ item }} state=installed
......@@ -36,7 +53,7 @@
- name: Download LMOD
get_url:
url=http://consistency0/src/Lmod-{{ lmod_version }}.tar.bz2
dest={{source_dir}}/Lmod-{{ lmod_version }}.tar.bz2
dest={{ source_dir }}/Lmod-{{ lmod_version }}.tar.bz2
mode=0444
when: not lmodstat.stat.exists
......@@ -45,7 +62,7 @@
src={{ source_dir }}/Lmod-{{ lmod_version }}.tar.bz2
dest={{ source_dir }}
copy=no
creates={{source_dir}}/Lmod-{{ lmod_version }}/README
creates={{ source_dir }}/Lmod-{{ lmod_version }}/README
when: not lmodstat.stat.exists
- name: Compile and install Lmod
......
---
system_packages:
- tigervnc-server
- libXcomposite
- libXdamage
- mesa-libEGL
- mesa-libgbm
- harfbuzz
- mesa-libglapi
- graphite2
- xterm
- libpng
- xorg-x11-fonts-100dpi
- xorg-x11-fonts-75dpi
- xorg-x11-fonts-misc
system_group_packages:
- "mate-desktop-environment"
- "graphical-server-environment"
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