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.

26 lines
515B

  1. ---
  2. - name: nginx nextcloud vhost
  3. template:
  4. src: nginx-vhost.conf.j2
  5. dest: /etc/nginx/sites-available/onlyoffice
  6. notify: restart nginx
  7. - name: remove default onlyoffice config
  8. file:
  9. path: /etc/nginx/conf.d/ds.conf
  10. state: absent
  11. notify: restart nginx
  12. - name: nginx nextcloud vhost enabled
  13. file:
  14. src: ../sites-available/onlyoffice
  15. dest: /etc/nginx/sites-enabled/onlyoffice
  16. state: link
  17. notify: restart nginx
  18. - name: start nginx
  19. service:
  20. name: nginx
  21. state: started