robertdebock.tigervnc

Ansible Role for TigerVNC

This guide helps you install and set up TigerVNC on your machine.

GitHub GitLab Downloads Version
GitHub Badge GitLab Badge Download Badge Version Badge

Example Playbook

Here’s a simple example you can use, from molecule/default/converge.yml:

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: robertdebock.tigervnc

Make sure your system is ready first. This preparation is done with molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: robertdebock.bootstrap
    - role: robertdebock.core_dependencies
    - role: robertdebock.gnome
    - role: robertdebock.users
      users_groups:
        - name: vncgroup
      users:
        - name: vncuser
          sudo_options: "ALL=(ALL) NOPASSWD: ALL"
          group: vncgroup

For a detailed explanation on using these roles, check out this guide.

Role Variables

You can find the default variable values in defaults/main.yml:

---
# Default settings for TigerVNC

# The TigerVNC server runs under a specific user and group. This user
# is created in `molecule/default/prepare.yml`. You can either use
# an existing user or create a new one with
# [ansible-role-users](https://galaxy.ansible.com/robertdebock/users)
tigervnc_username: vncuser
tigervnc_groupname: vncgroup

# You need a password to connect to the TigerVNC server.
tigervnc_password: vncpass

# Set to true if using an existing user's VNC password
tigervnc_user_exists: false

# Define the desktop session to connect to, e.g., gnome-session
tigervnc_desktop_session: gnome-session

Requirements

You need the pip packages listed in requirements.txt.

Used Roles

The system is prepared using the following roles, but you can choose different methods.

Requirement GitHub GitLab
robertdebock.bootstrap Bootstrap GitHub Build Bootstrap GitLab Build
robertdebock.core_dependencies Core Dependencies GitHub Build Core Dependencies GitLab Build
robertdebock.gnome GNOME GitHub Build GNOME GitLab Build
robertdebock.users Users GitHub Build Users GitLab Build

Context

This role works with many other compatible roles. For more information, check out the documentation.

Here's a visual overview of the related roles: dependencies

Compatibility

This role has been tested on these container images:

Container Tags
EL 9
Ubuntu focal

Ansible version 2.12 or higher is required. Testing has been done with:

  • Previous versions.
  • Current version.
  • Development version.

If you encounter any issues, please report them on GitHub.

License

This role is licensed under Apache-2.0.

Author Information

Authored by robertdebock.

If you find this helpful, consider supporting me.

Informazioni sul progetto

Install and configure tigervnc on your system.

Installa
ansible-galaxy install robertdebock.tigervnc
Licenza
apache-2.0
Download
2.6k
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.