1
0
forked from infra/ansible
infra/roles/xrdp_apphost/tasks/slicer.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

30 lines
881 B
YAML

---
- name: Install Slic3r dependencies
apt:
name:
- libgtk2.0-0
- name: Create Slic3r group
group: name={{ slicer_group }}
- name: Create Slic3r user
user: name={{ slicer_user }} password={{ slicer_pass | password_hash('sha512', slicer_salt) }} home=/home/{{ slicer_user }} group={{ slicer_group }}
- name: Create Slic3r .xsession
template: src=slicer_xsession.j2 dest=/home/{{ slicer_user }}/.xsession
- name: Create Slic3r data directory
file: path=/home/{{ slicer_user }}/data state=directory mode=0755 owner={{ slicer_user }} group={{ slicer_group }}
- name: Create info directory
file:
path: "/home/{{ slicer_user }}/data/{{ info_folder_name }}"
state: directory
mode: 0444
owner: root
group: root
- name: Download Slic3r binary
get_url: url={{ slicer_url }} dest={{ slicer_target }} checksum={{ slicer_checksum }} mode=0755