octoprint/tasks/main.yaml
changeset 193 fd46c0e68c2c
child 238 bdbc88cb5078
equal deleted inserted replaced
192:febbf9c3394c 193:fd46c0e68c2c
       
     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
       
     9   pip: name="octoprint" executable="pip3"
       
    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"