ansible/roles/octoprint/tasks/service.yml

21 lines
388 B
YAML
Raw Normal View History

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