Add docker-distribution to registry hosts
This commit is contained in:
parent
6193276604
commit
c8114b2594
2 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue