Update octoprint

This commit is contained in:
pgrondek 2021-02-23 19:37:36 +01:00
parent 607a9374db
commit 318c638df7
3 changed files with 22 additions and 35 deletions

View File

@ -4,18 +4,22 @@
# - ssh # - ssh
# - ubuntu # - ubuntu
# #
#- hosts: prusa.lan - hosts: prusa
# roles:
# - ssh
# - octoprint
# - ubuntu
- hosts: docker_cluster
roles: roles:
- ssh - ssh
- docker-cluster - octoprint
- ubuntu - ubuntu
#- hosts: docker_cluster
# roles:
# - ssh
# - docker-cluster
# - ubuntu
#
#- hosts: raspberry
# roles:
# - i2c-clock
#- hosts: router.lan #- hosts: router.lan
# roles: # roles:
# - router # - router

View File

@ -6,7 +6,7 @@ After=network.target
User=octoprint User=octoprint
Group=octoprint Group=octoprint
Restart=always Restart=always
ExecStart=/home/octoprint/.local/bin/octoprint ExecStart=/home/octoprint/bin/octoprint
Type=simple Type=simple
[Install] [Install]

View File

@ -5,44 +5,29 @@
apt: apt:
update_cache: yes update_cache: yes
pkg: pkg:
- python-pip - python3-pip
- python-dev - python3-all-dev
- python-setuptools - python3-setuptools
- python-virtualenv - python3-virtualenv
- python-pillow
- git - git
- libyaml-dev - libyaml-dev
- build-essential - build-essential
- acl
- libjpeg8-dev
- name: install octoprint software - name: install octoprint software
become: true
become_user: octoprint become_user: octoprint
shell: shell:
chdir: /home/octoprint chdir: /home/octoprint
cmd: | cmd: |
virtualenv --system-site-packages . virtualenv --system-site-packages .
source bin/activate source bin/activate
pip install pip --upgrade pip3 install pip --upgrade
pip install octoprint pip3 install octoprint
args: args:
executable: /bin/bash executable: /bin/bash
- name: enable system wide packages
file:
path: /home/octoprint/lib/python2.7/no-global-site-packages.txt
state: absent
- name: Create symbolic link for PIL package
file:
src: /usr/lib/python2.7/dist-packages/PIL
dest: /home/octoprint/lib/python2.7/site-packages/PIL
state: link
- name: Create symbolic link for pillow package
file:
src: /usr/lib/python2.7/dist-packages/Pillow-5.1.0.egg-info
dest: /home/octoprint/lib/python2.7/site-packages/Pillow-5.1.0.egg-info
state: link
- name: install plugins - name: install plugins
become_user: octoprint become_user: octoprint
pip: pip:
@ -58,6 +43,4 @@
- https://github.com/paukstelis/OctoPrint-Cancelobject/archive/master.zip - https://github.com/paukstelis/OctoPrint-Cancelobject/archive/master.zip
- https://github.com/Renaud11232/OctoPrint-Resource-Monitor/archive/master.zip - https://github.com/Renaud11232/OctoPrint-Resource-Monitor/archive/master.zip
- https://github.com/agrif/OctoPrint-InfluxDB/archive/master.zip - https://github.com/agrif/OctoPrint-InfluxDB/archive/master.zip
- https://github.com/juergenpabel/OctoPrint-Procastinator/archive/master.zip
- https://github.com/ManuelMcLure/OctoPrint-WiFiStatus/archive/master.zip