ansible/roles/octoprint/tasks/service.yml

20 lines
397 B
YAML
Raw Permalink Normal View History

2020-05-25 21:44:21 +00:00
---
2020-05-25 22:02:14 +00:00
- become: yes
block:
- name: copy systemd service config
copy:
src: octoprint.service
dest: /lib/systemd/system/octoprint.service
2020-05-25 21:44:21 +00:00
2020-05-25 22:02:14 +00:00
- name: enable systemd service
systemd:
name: octoprint
enabled: yes
state: started
2020-05-25 21:44:21 +00:00
2020-05-25 22:02:14 +00:00
- name: enable octoprint to restart itself
copy:
src: sudoers.conf
dest: /etc/sudoers.d/octoprint
mode: 0440