1
0
forked from infra/ansible
infra/roles/xrdp_apphost/tasks/slicer.yml

22 lines
709 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: Download Slic3r binary
get_url: url={{ slicer_url }} dest={{ slicer_target }} checksum={{ slicer_checksum }} mode=0755