Thanks to visit codestin.com
Credit goes to github.com

Skip to content

charles-m-knox/ansible-role-x11vnc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x11vnc

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.

Requirements

There are no requirements for this, it should work out of the box with Ansible.

Role Variables

Please see defaults/main.yml for variables that can all be set on a per-host basis.

Dependencies

None at the moment.

Usage

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: main

Next, install it:

# include the -f flag to forceably re-install and get the latest (equivalent to
# upgrading)
ansible-galaxy role install -f -r requirements.yml

Now, 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.x11vnc
ansible-playbook site.yml --tags x11vnc

License

MIT

Author Information

https://charlesmknox.com

About

An Ansible role for installing and configuring x11vnc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages