Coder Social home page Coder Social logo

ansible-role-linux-desktop's Introduction

Linux Desktop Environment install

What does it do?

Installs your preferred desktop environment (as long as you prefer one of the following):

gnome kde cinnamon mate xfce

What do you have to do?

I recommend you copy the content of the vars folder (all the kde.yml, xfce.yml etc.) to your group_vars and define new groups for each desktop environment.

If you don't want to do that (or you only use one DE always) you can of course specify the variables manually, in the defaults/main file or in your playbook. In that case look at the respective files in vars/* and copy the configuration for the DE you want.

Also make sure you update the defaults/main with the name of your user if you're not using your Ansible user for the desktop tasks.

How can I use this role?

We can use this role either just to install one desktop environment on selected servers, or to set up different desktop environments depending on host groups.

This is a simple example on how it would look if I want KDE on all my hosts

# example-basic-playbook.yml
# install KDE
- name: basic configuration
  hosts: all 
  vars:
  	linux_desktop: kde
  roles: 
    - linux-desktop

ansible-playbook example-basic-playbook.yml

However the preferred way would be to define your Desktop environment in your group_vars files, by copying the files in vars/* to group_vars we can define our desktop environments through groups in our hosts file:

#/etc/ansible/hosts
[linux]
debian1
debian2

[kde]
debian1

[gnome]
debian2
#group_vars/kde.yml
linux_desktop: kde
linux_boot_to_desktop: true
#group_vars/gnome.yml
linux_desktop: gnome
# example-playbook.yml
# sets up basic account and security configuration
- name: basic configuration
  hosts: all 
  roles: 
    - linux-desktop

This will set it up so that our servers will get the DE according to which group they are in!

##Compability

Tested on:

Debian 8 & CentOS 7

ansible-role-linux-desktop's People

Contributors

pppontusw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.