You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
800 B

  1. ---
  2. - name: Create gunicorn service file
  3. template:
  4. src: gunicorn.service.jinja2
  5. dest: /etc/systemd/system/gunicorn.service
  6. owner: root
  7. group: root
  8. mode: 0644
  9. - name: Create gunicorn socket file
  10. template:
  11. src: gunicorn.socket.jinja2
  12. dest: /etc/systemd/system/gunicorn.socket
  13. owner: root
  14. group: root
  15. mode: 0644
  16. - name: Create gunicorn tmpfiles.d configuration file
  17. template:
  18. src: gunicorn.conf.jinja2
  19. dest: /usr/lib/tmpfiles.d/gunicorn.conf
  20. owner: root
  21. group: root
  22. mode: 0644
  23. - name: Start and enable gunicorn.socket service
  24. systemd_service:
  25. name: gunicorn.socket
  26. state: started
  27. enabled: true
  28. - name: Start and enable gunicorn service
  29. systemd_service:
  30. name: gunicorn.service
  31. state: started
  32. enabled: true