ansible/roles/octoprint/tasks/install.yml
2020-05-25 23:44:21 +02:00

27 lines
516 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: install needed tools
become: yes
apt:
update_cache: yes
pkg:
- python-pip
- python-dev
- python-setuptools
- python-virtualenv
- git
- libyaml-dev
- build-essential
- name: install octoprint software
become: yes
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