Skip to content
Snippets Groups Projects
Commit 59d20b73 authored by Chris Hines's avatar Chris Hines
Browse files

update vncserver role to make it more likely to work on other OSs

parent 4bef09d7
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,9 @@
#- include_vars: "{{ hostvars[ansible_hostname]['ansible_distribution'] }}_{{ ansible_architecture }}.yml"
- include_vars: "{{ ansible_distribution }}_{{ ansible_architecture }}.yml"
- include_vars: "CentOS_7_x86_64.yml"
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
# Use mate DE on systems that have moved to gnome3, since there is no gpu acceleration by default on NeCTAR openstack
# Trusty (Ubuntu 14.04 LTS) needs repos added. Wheezy (Debian Stable) gets mate from backports, Utopic (Ubuntu 14.10) Jessie (Debian testing) and Sid (Debian unstable) get it by default
- name: add repos apt
......@@ -14,6 +17,18 @@
sudo: true
when: ansible_distribution_release == 'trusty'
- name: add epel on CentOS 7
shell: rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
ignore_errors: true
- name: add epel on CentOS 7
shell: yum -y update
sudo: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: install system packages apt
apt: name={{ item }} state=installed update_cache=true force=yes
sudo: true
......@@ -21,7 +36,7 @@
when: ansible_os_family == 'Debian'
- name: install system packages yum
yum: name={{ item }} state=installed
yum: name={{ item }} state=installed update_cache=yes
sudo: true
with_items: system_packages
when: ansible_os_family == 'RedHat'
---
system_packages:
- "@desktop"
- tigervnc-server
- "@xfce"
- libXcomposite
- libXdamage
- mesa-libEGL
- mesa-libgbm
- harfbuzz
- mesa-libglapi
- graphite2
- xterm
- libpng
- "@MATE Desktop"
......@@ -2,3 +2,4 @@
system_packages:
- "@desktop"
- tigervnc-server
- "@xfce"
......@@ -2,3 +2,5 @@
system_packages:
- mate-desktop-environment
- tightvncserver
- xfce4-session
- xfwm4
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