ansible/roles/octoprint/tasks/install.yml

27 lines
516 B
YAML
Raw Normal View History

2020-05-25 21:44:21 +00:00
---
- 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