No description
Find a file
semantic-release-bot a00ff0c931 chore(release): 1.8.0 [skip ci]
# [1.8.0](https://github.com/de-it-krachten/ansible-role-gnome_desktop/compare/v1.7.0...v1.8.0) (2025-08-06)

### Features

* Add support for Debian 13 (Trixie) ([cf7ebfc](cf7ebfcfab))
* Add support for OracleLinux 10 ([a820678](a820678fc3))
2025-08-06 20:08:04 +00:00
.github/workflows Update supported platforms & CI 2025-08-06 19:55:54 +02:00
defaults Move from vars->defaults 2023-09-09 01:22:17 +02:00
handlers feat: Move to FQCN 2022-10-08 13:33:08 +02:00
meta Update supported platforms & CI 2025-08-06 19:55:54 +02:00
molecule/default Update supported platforms & CI 2025-08-06 19:55:54 +02:00
tasks fix: Change loop/label for latest ansible 2023-11-19 11:58:01 +01:00
templates feat: Initial release 2022-06-25 17:38:56 +02:00
.ansible-lint feat: Update CI to latest standards 2022-10-09 21:04:35 +02:00
.cicd Update supported platforms & CI 2025-08-06 19:55:54 +02:00
.cicd.overwrite Update supported platforms & CI 2025-08-06 19:55:54 +02:00
.collections Update CI 2024-04-12 19:57:47 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 02:07:25 +01:00
.releaserc.yml feat: Update CI to latest standards 2022-10-09 21:04:35 +02:00
.roles feat: Update CI to latest standards 2022-10-09 21:04:35 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 02:07:25 +01:00
CHANGELOG.md chore(release): 1.8.0 [skip ci] 2025-08-06 20:08:04 +00:00
README.md Update supported platforms & CI 2025-08-06 19:55:54 +02:00

CI

ansible-role-gnome_desktop

Install the Gnome 3.x desktop Primary goal of this role, is to mke it easy to install the Gnome desktop onto headless Vagrant boxes, when testing code onto vm's that require a desktop environment.

Dependencies

Roles

  • deitkrachten.facts
  • deitkrachten.package

Collections

  • community.general

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • RockyLinux 8
  • OracleLinux 8
  • OracleLinux 9
  • OracleLinux 10
  • AlmaLinux 8
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Debian 13 (Trixie)
  • Ubuntu 20.04 LTS
  • Ubuntu 22.04 LTS1
  • Ubuntu 24.04 LTS
  • Fedora 41
  • Fedora 42

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# OS packages that need to be absent, as they block gnome installation
gnome_desktop_blocking_packages: []

# Only install minimal set of packages
gnome_desktop_minimal: false

# List of packages for minimal desktop
gnome_desktop_packages_minimal: []

# Package mode (switch to 'install' for less output)
gnome_desktop_package_mode: 'install-verbose'

# Should wayland be activated
gnome_desktop_wayland: true

# Configure auto login
gnome_desktop_autologin_enable: false

# User that should be used for autologin
gnome_desktop_autologin: ''

# Disable screen lock
gnome_desktop_lock_disable: false

# Timeout (in seconds) before locking
gnome_desktop_lock_timeout: '900'

# GDM configuration file to use
gnome_desktop_gdm_conf: "{{ ansible_facts.ansible_local.dm.conf }}"

# GNOME settings
gnome_desktop_settings:
  - key: /org/gnome/desktop/session/idle-delay
    value: '{{ gnome_desktop_lock_timeout }}'
  - key: /org/gnome/desktop/screensaver/lock-delay
    value: '{{ gnome_desktop_lock_timeout }}'
  - key: /org/gnome/desktop/screensaver/lock-enabled
    value: "{{ 'false' if gnome_desktop_lock_disable | bool else 'true' }}"

defaults/Debian.yml


# List of package known to block gnome installation
gnome_desktop_blocking_packages: []

# List of package / package groups to install
gnome_desktop_packages:
  - task-gnome-desktop
  - python3-psutil

defaults/family-RedHat-9.yml


# List of package known to block gnome installation
gnome_desktop_blocking_packages: []

# List of package / package groups to install
gnome_desktop_packages:
  - "@graphical-server-environment"
  - python3-psutil
  - xdg-utils

defaults/family-RedHat.yml


# List of package known to block gnome installation
gnome_desktop_blocking_packages: []

# List of package / package groups to install
gnome_desktop_packages:
  - "@gnome-desktop"
  - python3-psutil
  - xdg-utils

defaults/Fedora.yml


# List of package known to block gnome installation
gnome_desktop_blocking_packages: []

# List of package / package groups to install
gnome_desktop_packages:
  # - "@workstation-product-environment"
  - "@gnome-desktop"
  - python3-psutil

defaults/Ubuntu-1804.yml


# List of package known to block gnome installation
gnome_desktop_blocking_packages: []

# List of package / package groups to install
gnome_desktop_packages:
  - ubuntu-desktop
  - python3-psutil

# List of package / package groups to install - minimal
gnome_desktop_packages_minimal: []

defaults/Ubuntu.yml


# List of package known to block gnome installation
gnome_desktop_blocking_packages: []

# List of package / package groups to install
gnome_desktop_packages:
  - ubuntu-desktop
  - python3-psutil

# List of package / package groups to install - minimal
gnome_desktop_packages_minimal:
  - ubuntu-desktop-minimal
  - python3-psutil

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'gnome_desktop'
  hosts: all
  become: 'yes'
  vars:
    hashicorp_product: vagrant
  tasks:
    - name: Include role 'gnome_desktop'
      ansible.builtin.include_role:
        name: gnome_desktop