- ---
-
- - name: ensure apache is uninstalled
- apt:
- pkg: apache2
- state: absent
-
- - import_role:
- name: nginx
-
- - name: nginx nextcloud vhost
- template:
- src: nginx-vhost.conf.j2
- dest: /etc/nginx/sites-available/nextcloud
- notify: restart nginx
-
- - name: nginx nextcloud vhost enabled
- file:
- src: ../sites-available/nextcloud
- dest: /etc/nginx/sites-enabled/nextcloud
- state: link
- notify: restart nginx
-
- - name: start nginx
- service:
- name: nginx
- state: started
|