homeserver/friedhof/mgrote_xrdp/mgrote.xrdp/tasks/main.yml

25 lines
608 B
YAML
Raw Normal View History

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