2022-01-08 03:39:36 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install Slic3r dependencies
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- libgtk2.0-0
|
|
|
|
|
|
|
|
- name: Create Slic3r group
|
2022-01-09 18:19:16 +01:00
|
|
|
group: name={{ xrdp_applications.Slicer.group }}
|
2022-01-08 03:39:36 +01:00
|
|
|
|
|
|
|
- name: Create Slic3r user
|
2022-01-09 18:19:16 +01:00
|
|
|
user: name={{ xrdp_applications.Slicer.user }} password={{ xrdp_applications.Slicer.pass | password_hash('sha512', xrdp_applications.Slicer.salt) }} home=/home/{{ xrdp_applications.Slicer.user }} group={{ xrdp_applications.Slicer.group }}
|
2022-01-08 03:39:36 +01:00
|
|
|
|
|
|
|
- name: Create Slic3r .xsession
|
2022-01-09 18:19:16 +01:00
|
|
|
template: src=slicer_xsession.j2 dest=/home/{{ xrdp_applications.Slicer.user }}/.xsession
|
2022-01-08 03:39:36 +01:00
|
|
|
|
|
|
|
- name: Create Slic3r data directory
|
2022-01-09 18:19:16 +01:00
|
|
|
file: path=/home/{{ xrdp_applications.Slicer.user }}/data state=directory mode=0755 owner={{ xrdp_applications.Slicer.user }} group={{ xrdp_applications.Slicer.group }}
|
2022-01-08 03:39:36 +01:00
|
|
|
|
2022-01-09 16:37:41 +01:00
|
|
|
- name: Create info directory
|
|
|
|
file:
|
2022-01-09 18:19:16 +01:00
|
|
|
path: "/home/{{ xrdp_applications.Slicer.user }}/data/{{ info_folder_name }}"
|
2022-01-09 16:37:41 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0444
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
|
2022-01-08 03:39:36 +01:00
|
|
|
- name: Download Slic3r binary
|
2022-01-09 18:19:16 +01:00
|
|
|
get_url: url={{ slicer_url }} dest={{ slicer_target }} checksum={{ xrdp_applications.Slicer.checksum }} mode=0755
|