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.

38 lines
903 B

  1. ---
  2. - name: Add shortener config file
  3. template:
  4. src: tildes-shortener.conf.jinja2
  5. dest: /etc/nginx/sites-available/tildes-shortener.conf
  6. owner: root
  7. group: root
  8. mode: 0644
  9. - name: Enable shortener in nginx
  10. file:
  11. path: /etc/nginx/sites-enabled/tildes-shortener.conf
  12. src: /etc/nginx/sites-available/tildes-shortener.conf
  13. state: link
  14. owner: root
  15. group: root
  16. mode: 0644
  17. notify:
  18. - Reload nginx
  19. - name: Add static sites config file
  20. template:
  21. src: tildes-static-sites.conf.jinja2
  22. dest: /etc/nginx/sites-available/tildes-static-sites.conf
  23. owner: root
  24. group: root
  25. mode: 0644
  26. - name: Enable static sites in nginx
  27. file:
  28. path: /etc/nginx/sites-enabled/tildes-static-sites.conf
  29. src: /etc/nginx/sites-available/tildes-static-sites.conf
  30. state: link
  31. owner: root
  32. group: root
  33. mode: 0644
  34. notify:
  35. - Reload nginx