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

48 行
875B

  1. ---
  2. - name: ensure nginx is uninstalled
  3. apt:
  4. pkg:
  5. - nginx
  6. - nginx-common
  7. - nginx-extras
  8. state: absent
  9. - import_role:
  10. name: apache
  11. - name: apache2 modules
  12. apache2_module:
  13. name: "{{ item }}"
  14. state: present
  15. with_items:
  16. - ssl
  17. - rewrite
  18. - env
  19. - headers
  20. notify: restart apache2
  21. - name: apache2 nextcloud vhost
  22. template:
  23. src: apache-vhost.conf.j2
  24. dest: /etc/apache2/sites-available/nextcloud.conf
  25. notify: restart apache2
  26. - name: apache2 nextcloud vhost enabled
  27. file:
  28. src: ../sites-available/nextcloud.conf
  29. dest: /etc/apache2/sites-enabled/nextcloud.conf
  30. state: link
  31. notify: restart apache2
  32. - name: apache2 ports
  33. template:
  34. src: apache2-ports.conf.j2
  35. dest: /etc/apache2/ports.conf
  36. notify: restart apache2
  37. - name: start apache2
  38. service:
  39. name: apache2
  40. state: started