author | Luke Hoersten <luke@hoersten.org> |
Mon, 07 Oct 2024 23:31:51 -0500 | |
changeset 239 | c3e3169399a8 |
parent 238 | bdbc88cb5078 |
permissions | -rw-r--r-- |
193 | 1 |
--- |
2 |
||
3 |
- name: add octoprint user |
|
4 |
become: yes |
|
5 |
user: name="octoprint" groups="{{octoprint_groups}}" home="/opt/octoprint" system="yes" |
|
6 |
||
7 |
- name: pip install octoprint |
|
8 |
become: yes |
|
238
bdbc88cb5078
Lots of updates and fixes for Ubuntu 24.04 Noble.
Luke Hoersten <luke@hoersten.org>
parents:
193
diff
changeset
|
9 |
pip: name="octoprint" executable="pip3" break_system_packages="true" |
193 | 10 |
notify: restart octoprint |
11 |
||
12 |
- name: install octoprint systemd service |
|
13 |
become: yes |
|
14 |
copy: |
|
15 |
src: "octoprint.service" |
|
16 |
dest: "/lib/systemd/system/octoprint.service" |
|
17 |
notify: restart octoprint |
|
18 |
||
19 |
- name: ensure octoprint service is started |
|
20 |
become: yes |
|
21 |
systemd: name="octoprint.service" enabled="yes" |