Ansible role to install Xvfb (X virtual framebuffer) on UNIX-like platforms.
For project facts and architecture mindmap, see FACTS.mmd. For execution flows and logic diagrams, see FLOWS.mmd.
This role requires:
- Ansible
- Python
- Administrative/root access on target hosts
- One of the following operating systems:
- Alpine Linux
- Debian/Ubuntu
- NixOS or systems with Nix package manager
To install this role from Ansible Galaxy, run the following command:
ansible-galaxy install ea31337.xvfbTo install this role, you can use the following terminal command:
ansible-galaxy install git+https://github.com/EA31337/ansible-role-xvfb.gitFor available variables,
check defaults/main.yml.
Steps to test role on Docker containers.
-
Install the current role by running the following commands in shell:
ansible-galaxy install -r requirements.yml jinja2 requirements-local.yml.j2 -D "pwd=$PWD" -o requirements-local.yml ansible-galaxy install -r requirements-local.ymlAlternatively, for development purposes, you can consider using symbolic link, e.g.
ln -vs "$PWD" ~/.ansible/roles/ea31337.xvfb
-
Ensure Docker service (e.g. Docker Desktop) is running.
-
Run playbook from
tests/:ansible-playbook -i tests/inventory/docker-containers.yml tests/playbooks/docker-containers.yml
To test using Molecule, run:
molecule testThe Docker image is automatically built and pushed to the GitHub Container Registry (GHCR) on every merge to master
and on new tags.
To pull the latest image:
docker pull ghcr.io/ea31337/ansible-role-xvfb:latestThe following tags are available for ghcr.io/ea31337/ansible-role-xvfb:
latest: Latest version (based onubuntu-latest).alpine-latest: Based onalpine:latest.debian-latest: Based ondebian:latest.nixos-latest: Based onnixos/nix:latest.ubuntu-jammy: Based onubuntu:jammy.ubuntu-noble: Based onubuntu:noble.ubuntu-latest: Based onubuntu:latest.v1.0.4: Release v1.0.4.
GNU GPL v3
See: LICENSE