ansible/roles/xrdp_apphost/tasks/slicer.yml
Thomas Basler 541c061c7d xrdp_apphost: Moved configuration to dictionary
This allows config and user generation using loops
2022-06-19 21:47:48 +02:00

30 lines
1.1 KiB
YAML

---
- name: Install Slic3r dependencies
apt:
name:
- libgtk2.0-0
- name: Create Slic3r group
group: name={{ xrdp_applications.Slicer.group }}
- name: Create Slic3r user
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 }}
- name: Create Slic3r .xsession
template: src=slicer_xsession.j2 dest=/home/{{ xrdp_applications.Slicer.user }}/.xsession
- name: Create Slic3r data directory
file: path=/home/{{ xrdp_applications.Slicer.user }}/data state=directory mode=0755 owner={{ xrdp_applications.Slicer.user }} group={{ xrdp_applications.Slicer.group }}
- name: Create info directory
file:
path: "/home/{{ xrdp_applications.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={{ xrdp_applications.Slicer.checksum }} mode=0755