Xrdp

This role installs XRDP Service on Target Device

General

This Role fullfills the following steps:

  • Update System:
  - name: Update APT packages on target device
    apt:
      state: update_cache
  • Install latest XRDP Version:
  - name: Install XRDP on target device
    apt:
      name: xrdp
      state: latest
    register: xrdp_install
  • Move User xrdp to group ssl-cert
  - name: Move User xrdp to group ssl-cert
    shell: sudo adduser xrdp ssl-cert
    when: xrdp_install.changed
  • Restart XRDP Service
  - name: Restarting XRDP Service...
    service:
        name: xrdp
        state: restarted
    become: true

Dependencies

Role Dependencies

None

Package Dependencies

None

Role Variables

Name Type Default value Purpose Comment Role
xrdp_conf Boolean false If this variable is set to true in the inventory file, Ansible will run the role Possible values:
true: enables role
false: disables role
noble_xrdp

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

---
- hosts: all
  roles:
  - noble_xrdp

Example Inventory/hosts

COMPUTERNAME:
  xrdp_conf: true

License

BSD

Author Information

Maintainer:
Sandro Romagnoli

Support-Contact:
s4d-linux-support@id.ethz.ch