homeserver/friedhof/mgrote_xrdp/mgrote.xrdp/tasks/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

24 lines
608 B
YAML

---
- name: install packages
become: true
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