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.

29 lines
585 B

  1. - name: install utilities
  2. apt:
  3. name: "{{ item }}"
  4. state: present
  5. update_cache: yes
  6. cache_valid_time: 3600
  7. with_items:
  8. - apache2-utils
  9. - name: create directories to serve
  10. file:
  11. path: '{{ server_path }}/{{ item }}'
  12. state: directory
  13. mode: 0755
  14. owner: www-data
  15. group: www-data
  16. recurse: yes
  17. with_items: '{{ webdav_folders }} + ["temp"]'
  18. - name: touch htpasswd file
  19. file:
  20. path: '{{ item }}'
  21. state: touch
  22. mode: 0640
  23. owner: www-data
  24. group: www-data
  25. with_items:
  26. - /etc/nginx/media_htpasswd
  27. changed_when: False