2021-11-03 13:37:46 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install main dependencies
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- xrdp
|
|
|
|
- libasound2
|
|
|
|
- matchbox-window-manager
|
|
|
|
|
|
|
|
- name: Configure xrdp.ini
|
|
|
|
template: src=xrdp.ini.j2 dest=/etc/xrdp/xrdp.ini
|
|
|
|
notify: Restart xrdp
|
|
|
|
|
|
|
|
- name: Configure sesman.ini
|
|
|
|
template: src=sesman.ini.j2 dest=/etc/xrdp/sesman.ini
|
|
|
|
notify: Restart xrdp
|
|
|
|
|
2021-11-03 19:58:26 +01:00
|
|
|
- name: Create xrdp directory
|
|
|
|
file: path=/usr/local/share/xrdp/ state=directory mode=0755 owner=root group=root
|
|
|
|
|
|
|
|
- name: Copy Binary Kitchen Logo
|
|
|
|
copy: src={{ xrdp_ls_logo_filename }} dest=/usr/local/share/xrdp/{{ xrdp_ls_logo_filename }}
|
|
|
|
notify: Restart xrdp
|
|
|
|
|
2021-11-03 23:18:18 +01:00
|
|
|
|
|
|
|
- name: Install samba
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- samba
|
|
|
|
|
|
|
|
- name: Configure samba
|
|
|
|
template:
|
|
|
|
src: smb.conf.j2
|
|
|
|
dest: /etc/samba/smb.conf
|
|
|
|
notify: Reload smbd
|
|
|
|
|
|
|
|
|
2021-11-03 13:37:46 +01:00
|
|
|
- name: Install LightBurn dependencies
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- libpulse-mainloop-glib0
|
|
|
|
- libnss3
|
|
|
|
|
|
|
|
- name: Create LightBurn group
|
|
|
|
group: name={{ lightburn_group }}
|
|
|
|
|
|
|
|
- name: Create LightBurn user
|
|
|
|
user: name={{ lightburn_user }} password={{ lightburn_pass | password_hash('sha512', lightburn_salt) }} home=/home/{{ lightburn_user }} group={{ lightburn_group }}
|
|
|
|
|
|
|
|
- name: Create LightBurn .xsession
|
|
|
|
template: src=lightburn_xsession.j2 dest=/home/{{ lightburn_user }}/.xsession
|
|
|
|
|
2021-11-03 23:18:18 +01:00
|
|
|
- name: Create LightBurn data directory
|
|
|
|
file: path=/home/{{ lightburn_user }}/data state=directory mode=0755 owner={{ lightburn_user }} group={{ lightburn_group }}
|
|
|
|
|
2021-11-03 13:37:46 +01:00
|
|
|
- name: Download LightBurn binary
|
|
|
|
get_url: url={{ lightburn_url }} dest={{ lightburn_target }} checksum={{ lightburn_checksum }} mode=0755
|
|
|
|
notify: Install LightBurn
|