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

28 行
496B

  1. ---
  2. - name: ensure apache is uninstalled
  3. apt:
  4. pkg: apache2
  5. state: absent
  6. - import_role:
  7. name: nginx
  8. - name: nginx nextcloud vhost
  9. template:
  10. src: nginx-vhost.conf.j2
  11. dest: /etc/nginx/sites-available/nextcloud
  12. notify: restart nginx
  13. - name: nginx nextcloud vhost enabled
  14. file:
  15. src: ../sites-available/nextcloud
  16. dest: /etc/nginx/sites-enabled/nextcloud
  17. state: link
  18. notify: restart nginx
  19. - name: start nginx
  20. service:
  21. name: nginx
  22. state: started