25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
715B

  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