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.

пре 7 година
пре 6 година
пре 7 година
пре 6 година
пре 4 година
пре 7 година
пре 7 година
пре 6 година
пре 6 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. - name: ensure nginx is uninstalled
  3. apt:
  4. pkg:
  5. - nginx
  6. - nginx-common
  7. - nginx-extras
  8. state: absent
  9. - import_role:
  10. name: apache
  11. - name: apache2 modules
  12. apache2_module:
  13. name: "{{ item }}"
  14. state: present
  15. with_items:
  16. - ssl
  17. - rewrite
  18. - env
  19. - headers
  20. notify: restart apache2
  21. - name: apache2 nextcloud vhost
  22. template:
  23. src: apache-vhost.conf.j2
  24. dest: /etc/apache2/sites-available/nextcloud.conf
  25. notify: restart apache2
  26. - name: apache2 nextcloud vhost enabled
  27. file:
  28. src: ../sites-available/nextcloud.conf
  29. dest: /etc/apache2/sites-enabled/nextcloud.conf
  30. state: link
  31. notify: restart apache2
  32. - name: apache2 ports
  33. template:
  34. src: apache2-ports.conf.j2
  35. dest: /etc/apache2/ports.conf
  36. notify: restart apache2
  37. - name: start apache2
  38. service:
  39. name: apache2
  40. state: started