ansible/roles/xrdp_apphost/tasks/lightburn.yml
Thomas Basler 2d645a13f4 xrdp_apphost: Implemented cleanup of old files
All files older than 30 days as well as empty folders
will be automatically deleted.
2022-06-19 21:47:48 +02:00

31 lines
997 B
YAML

---
- 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
- name: Create LightBurn data directory
file: path=/home/{{ lightburn_user }}/data state=directory mode=0755 owner={{ lightburn_user }} group={{ lightburn_group }}
- name: Create info directory
file:
path: "/home/{{ lightburn_user }}/data/{{ info_folder_name }}"
state: directory
mode: 0444
owner: root
group: root
- name: Download LightBurn binary
get_url: url={{ lightburn_url }} dest={{ lightburn_target }} checksum={{ lightburn_checksum }} mode=0755
notify: Install LightBurn