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.

28 line
496B

  1. ---
  2. - name: ensure apache is uninstalled
  3. apt:
  4. pkg: apache2
  5. state: absent
  6. - import_role:
  7. name: nginx
  8. - name: nginx nextcloud vhost
  9. template:
  10. src: nginx-vhost.conf.j2
  11. dest: /etc/nginx/sites-available/nextcloud
  12. notify: restart nginx
  13. - name: nginx nextcloud vhost enabled
  14. file:
  15. src: ../sites-available/nextcloud
  16. dest: /etc/nginx/sites-enabled/nextcloud
  17. state: link
  18. notify: restart nginx
  19. - name: start nginx
  20. service:
  21. name: nginx
  22. state: started