Ansible role that installs and configures x11vnc.
It creates a user-scoped systemd service called x11vnc.service that runs
x11vnc listening only on 127.0.0.1. You must take advantage of SSH tunneling
in order to access the shared screen.
There are no requirements for this, it should work out of the box with Ansible.
Please see defaults/main.yml for variables that can all be set on a per-host
basis.
None at the moment.
First, create a requirements.yml in your Ansible setup if you haven't already,
here's an example:
---
collections:
- name: community.general
- name: ansible.posix
- name: community.crypto
roles:
- name: charles-m-knox.x11vnc
src: https://github.com/charles-m-knox/ansible-role-x11vnc.git
scm: git
version: mainNext, install it:
# include the -f flag to forceably re-install and get the latest (equivalent to
# upgrading)
ansible-galaxy role install -f -r requirements.ymlNow, in your site.yml (or whatever your playbook is named), use the role -
note that root access is required for some of the steps:
- name: Install x11vnc
hosts: all
roles:
- charles-m-knox.x11vncansible-playbook site.yml --tags x11vncMIT