Add docker-distribution to registry hosts

This commit is contained in:
Timo Makinen 2021-09-14 16:54:04 +00:00
parent 6193276604
commit c8114b2594
2 changed files with 22 additions and 1 deletions

View file

@ -23,3 +23,24 @@
roles:
- base
- glusterfs
tasks:
- name: create /srv/registry
file:
path: /srv/registry
state: directory
mode: 0755
owner: root
group: "{{ ansible_wheel }}"
- name: mount /srv/registry
mount:
name: /srv/registry
src: "{{ inventory_hostname }}:/gv0"
fstype: glusterfs
opts: defaults
passno: "0"
dump: "0"
state: mounted
- import_role:
name: docker-distribution