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

Merge branch 'chgvncserer' into 'master'

setting default xsessionmanager via update alternatives rather than changing...

See merge request !510
parents d1445640 845c3341
No related branches found
No related tags found
1 merge request!510setting default xsessionmanager via update alternatives rather than changing...
...@@ -5,16 +5,30 @@ ...@@ -5,16 +5,30 @@
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: install system packages apt - name: install system packages apt
apt: name={{ system_packages }} state=present update_cache=true force=yes apt: name={{ system_packages }} state=present update_cache=true
become: true become: true
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: force the use of KDE desktop - name: force the use of mate desktop
template: src=vncserver.centos dest=/bin/vncserver template:
src: vncserver.ubuntu
dest: /usr/bin/vncserver
owner: root
group: root
mode: u=rxw,g=rx,o=rx
become: true become: true
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'Debian'
- name: force the use of mate desktop - name: query the default x-session
template: src=vncserver.ubuntu dest=/usr/bin/vncserver shell: update-alternatives --query x-session-manager | grep Value
become: true become: true
check_mode: no
changed_when: false
register: qxsessionmanager
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: make mate the default x-session
shell: update-alternatives --set x-session-manager /usr/bin/mate-session
become: true
when: ansible_os_family == 'Debian' and "mate" not in qxsessionmanager.stdout
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