blob: ceb8e465233ce262d72bd0317e404dadb8fc31aa [file] [log] [blame]
Zsolt Harasztiec7df102016-05-05 13:34:18 -07001- name: Directories are present
2 file:
3 path: "{{ item }}"
4 state: directory
5 recurse: yes
6 with_items:
7 - /data/registry-mirror/conf
8 tags: [registry]
9
10- name: Configuration is copied
11 copy:
12 src: mirror-config.yml
13 dest: /data/registry-mirror/conf/config.yml
14 tags: [registry]
15
16- name: Registry container is running
17 docker:
18 name: registry
19 image: registry:2.4.0
20 ports: 5000:5000
21 volumes:
22 - /vagrant/registry:/var/lib/registry/docker/registry
23 - /data/registry/conf:/conf
24 tags: [registry]
25
26- name: Mirror container is running
27 docker:
28 name: registry-mirror
29 image: registry:2.4.0
30 ports: 5001:5000
31 volumes:
32 - /vagrant/registry-mirror:/var/lib/registry/docker/registry
33 - /data/registry-mirror/conf:/conf
34 command: /conf/config.yml
35 tags: [registry]