46 lines
933 B
YAML
46 lines
933 B
YAML
---
|
|
- import_playbook: "include/deploy-kvm-guest.yml myhosts=registry"
|
|
|
|
- name: configure instance
|
|
hosts: registry
|
|
user: root
|
|
gather_facts: true
|
|
|
|
pre_tasks:
|
|
- name: mount /export
|
|
mount:
|
|
name: /export
|
|
src: LABEL=/export
|
|
fstype: xfs
|
|
opts: noatime,noexec,nosuid,nodev
|
|
passno: "0"
|
|
dump: "0"
|
|
state: mounted
|
|
|
|
vars_files:
|
|
- "{{ ansible_private }}/vars.yml"
|
|
|
|
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
|