ansible/roles/octoprint/tasks/install.yml

27 lines
555 B
YAML
Raw Normal View History

2020-05-25 21:44:21 +00:00
---
2020-05-25 22:02:14 +00:00
- become: yes
block:
- name: install needed tools
apt:
update_cache: yes
pkg:
- python-pip
- python-dev
- python-setuptools
- python-virtualenv
- git
- libyaml-dev
- build-essential
2020-05-25 21:44:21 +00:00
2020-05-25 22:02:14 +00:00
- name: install octoprint software
become_user: octoprint
shell:
chdir: /home/octoprint
cmd: |
virtualenv system-site-packages .
source bin/activate
pip install pip --upgrade
pip install octoprint
args:
executable: /bin/bash