You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 line
1.1KB

  1. ---
  2. - name: nextcloud directory
  3. file:
  4. path: "{{nextcloud_directory}}"
  5. state: directory
  6. owner: root
  7. group: www-data
  8. mode: 0750
  9. - name: nextcloud subdirectories
  10. file:
  11. path: "{{nextcloud_directory}}/{{item}}"
  12. state: directory
  13. owner: www-data
  14. group: www-data
  15. recurse: yes
  16. with_items:
  17. - config
  18. - apps
  19. - themes
  20. - updater
  21. - name: nextcloud lib directory
  22. file:
  23. path: "{{nextcloud_lib_directory}}"
  24. state: directory
  25. owner: www-data
  26. group: www-data
  27. mode: 0750
  28. - name: nextcloud data directory
  29. file:
  30. path: "{{nextcloud_data_directory}}"
  31. state: directory
  32. owner: www-data
  33. group: www-data
  34. mode: 0750
  35. recurse: yes
  36. - name: nextcloud log directory
  37. file:
  38. path: "{{nextcloud_log_directory}}"
  39. state: directory
  40. owner: www-data
  41. group: www-data
  42. - name: nextcloud backup directory
  43. file:
  44. path: "{{nextcloud_backup_directory}}"
  45. state: directory
  46. owner: root
  47. group: root
  48. mode: 0700
  49. - name: nextcloud htaccess webserver access
  50. file:
  51. path: "{{nextcloud_directory}}/.htaccess"
  52. state: file
  53. owner: www-data
  54. group: www-data