infOpen.xvfb
xvfb
Install xvfb package.
Requirements
This role requires Ansible 2.8 or higher, and platform requirements are listed in the metadata file.
Testing
This role use Molecule to run tests.
Local and Github Actions tests run tests on Docker by default. See molecule documentation to use other backend.
Currently, tests are done on:
- CentOS 7
- CentOS 8
- Debian Buster
- Debian Stretch
- Ubuntu Bionic
- Ubuntu Focal
and use:
- Ansible 2.8.x
- Ansible 2.9.x
Running tests
Using Docker driver
$ tox
You can also configure molecule options and molecule command using environment variables:
MOLECULE_OPTIONSDefault: "--debug"MOLECULE_COMMANDDefault: "test"
$ MOLECULE_OPTIONS='' MOLECULE_COMMAND=converge tox
Role Variables
Default role variables
# Installation
xvfb_packages: "{{ _xvfb_packages }}"
xvfb_repository_cache_valid_time: 3600
xvfb_repository_update_cache: True
xvfb_binary_path: "{{ _xvfb_binary_path }}"
# Service
xvfb_service_name: 'xvfb'
xvfb_service_enabled: True
xvfb_service_state: 'started'
# Configuration
xvfb_options: ':99 -screen 0 1x1x24 -ac +extension GLX +render -noreset'
Dependencies
None
Example Playbook
- hosts: servers
roles:
- { role: infOpen.xvfb }
License
MIT
Author Information
Alexandre Chaussier (for Infopen company)
- https://www.infopen.pro
- a.chaussier [at] infopen.pro
