Playbooks to a new Lilik
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.

20 lines
426 B

  1. - name: create directories to serve
  2. file:
  3. path: '{{ server_path }}/{{ item }}'
  4. state: directory
  5. mode: 0755
  6. owner: www-data
  7. group: www-data
  8. recurse: yes
  9. with_items: '{{ webdav_folders }} + ["temp"]'
  10. - name: touch htpasswd file
  11. file:
  12. path: '{{ item }}'
  13. state: touch
  14. mode: 0640
  15. owner: www-data
  16. group: www-data
  17. with_items:
  18. - /etc/nginx/media_htpasswd
  19. changed_when: False