# vim: ft=yaml.ansible
---
- name: Create subfolders
  file:
    name: "{{ services.hedgedoc.volume_folder }}/{{ volume }}"
    state: directory
  loop:
    - db
    - hedgedoc/uploads
  loop_control:
    loop_var: volume

- name: Copy SSO certificate
  copy:
    src: sso/sso.data.coop.pem
    dest: "{{ services.hedgedoc.volume_folder }}/sso.data.coop.pem"
    mode: "0644"