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.

29 lines
725 B

  1. ---
  2. - name: Check if site-icons.css file exists
  3. stat:
  4. path: "{{ app_dir }}/static/css/site-icons.css"
  5. register: site_icons_css_file
  6. # webassets will crash the site if this file doesn't exist
  7. - name: Create site-icons.css file
  8. file:
  9. path: "{{ app_dir }}/static/css/site-icons.css"
  10. state: touch
  11. owner: "{{ app_username }}"
  12. group: "{{ app_username }}"
  13. mode: 0644
  14. when: not site_icons_css_file.stat.exists
  15. - name: Create systemd service file
  16. template:
  17. src: webassets.service.jinja2
  18. dest: /etc/systemd/system/webassets.service
  19. owner: root
  20. group: root
  21. mode: 0644
  22. - name: Start and enable webassets service
  23. service:
  24. name: webassets
  25. state: started
  26. enabled: true