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.

apache2.yml 715B

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