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

12345678910111213141516171819202122232425
  1. ---
  2. - name: nginx nextcloud vhost
  3. template:
  4. src: nginx-vhost.conf.j2
  5. dest: /etc/nginx/sites-available/onlyoffice
  6. notify: restart nginx
  7. - name: remove default onlyoffice config
  8. file:
  9. path: /etc/nginx/conf.d/ds.conf
  10. state: absent
  11. notify: restart nginx
  12. - name: nginx nextcloud vhost enabled
  13. file:
  14. src: ../sites-available/onlyoffice
  15. dest: /etc/nginx/sites-enabled/onlyoffice
  16. state: link
  17. notify: restart nginx
  18. - name: start nginx
  19. service:
  20. name: nginx
  21. state: started