您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

37 行
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