ansible/roles/xrdp_apphost/tasks/slicer.yml

30 lines
881 B
YAML
Raw Normal View History

---
- 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