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

apache2.yml 701B

7 년 전
7 년 전
1234567891011121314151617181920212223242526272829303132333435
  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
  27. - name: start apache2
  28. service:
  29. name: apache2
  30. state: started