forked from infra/ansible
22 lines
709 B
YAML
22 lines
709 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: Download Slic3r binary
|
||
|
get_url: url={{ slicer_url }} dest={{ slicer_target }} checksum={{ slicer_checksum }} mode=0755
|