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

baremetal roles

parent 942dc567
No related branches found
No related tags found
1 merge request!281baremetal roles
--- ---
- name: install collectd - name: install collectd - CentOS
yum: name=collectd state=installed 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: true
become_user: root become_user: root
......
...@@ -5,20 +5,33 @@ ...@@ -5,20 +5,33 @@
- name: "Clear yum cache" - name: "Clear yum cache"
command: yum clean all command: yum clean all
sudo: true become: true
become_user: root
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: "Clear yum pending transactions" - name: "Clear yum pending transactions"
command: yum-complete-transaction --cleanup-only command: yum-complete-transaction --cleanup-only
sudo: true become: true
become_user: root
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: "Install extra packages" - name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present" yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
with_items: "{{ extra_packages }}" with_items: "{{ extra_packages }}"
become: true become: true
become_user: root become_user: root
when: ansible_os_family == 'RedHat' 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 register: result
- name: "Show yum install output" - name: "Show yum install output"
......
...@@ -12,7 +12,24 @@ ...@@ -12,7 +12,24 @@
- gcc - gcc
- lua-devel - lua-devel
sudo: true sudo: 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
sudo: true
when:
when:
- '"DGX" in ansible_product_name'
- '"RedHat" in ansible_distribution'
- name: install lua debian - name: install lua debian
apt: name={{ item }} state=installed apt: name={{ item }} state=installed
......
---
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