# vim: ft=yaml.ansible
---
- name: Create subfolders
  file:
    path: "{{ services.docker_registry.volume_folder }}/{{ volume }}"
    state: directory
  loop:
    - auth
    - registry
  loop_control:
    loop_var: volume

- name: Copy docker registry vhost configuration
  copy:
    src: vhost/docker_registry
    dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.docker_registry.domain }}"
    mode: "0644"