homeserver/roles/mgrote.xrdp/tasks/main.yml
mg 53b003628b ansible: xrdp (#268)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#268
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2021-12-11 21:00:13 +01:00

24 lines
655 B
YAML

---
- name: install packages
become: yes
ansible.builtin.package:
name:
- xrdp
- xorgxrdp
state: present
- name: create xsession config file
become: true
ansible.builtin.file:
path: "/home/{{ xrdp_user | default('mg') }}/.xsession"
state: touch
owner: "{{ xrdp_user | default('mg') }}"
modification_time: preserve
access_time: preserve
- name: set xsession config
become: true
ansible.builtin.blockinfile:
path: "/home/{{ xrdp_user | default('mg') }}/.xsession"
block: |
env -u SESSION_MANAGER -u DBUS_SESSION_BUS_ADDRESS cinnamon-session