25 lines
655 B
YAML
25 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
|