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.

31 lines
630B

  1. ---
  2. - name: apache2 modules
  3. apache2_module:
  4. name: "{{ item }}"
  5. state: present
  6. with_items:
  7. - ssl
  8. - rewrite
  9. - env
  10. notify: restart apache2
  11. - name: apache2 nextcloud vhost
  12. template:
  13. src: apache-vhost.conf.j2
  14. dest: /etc/apache2/sites-available/nextcloud.conf
  15. notify: restart apache2
  16. - name: apache2 nextcloud vhost enabled
  17. file:
  18. src: ../sites-available/nextcloud.conf
  19. dest: /etc/apache2/sites-enabled/nextcloud.conf
  20. state: link
  21. notify: restart apache2
  22. - name: apache2 ports
  23. template:
  24. src: apache2-ports.conf.j2
  25. dest: /etc/apache2/ports.conf
  26. notify: restart apache2