Files
provisioning/glusterfs.yml

40 lines
870 B
YAML

---
# playbook for home02
- hosts: gfs
remote_user: ansible
gather_facts: yes
become: true
vars:
cluster:
- cubox-i.xai-corp.net
- home
mountpoints:
- /data/glusterfs/vmshares/brick1
- /data/glusterfs/gitea/brick1
- /data/glusterfs/jenkins/brick1
- /data/glusterfs/tmp/brick1
- /data/glusterfs/elasticsearch/brick1
volumes:
vmshares:
- /data/glusterfs/vmshares/brick1/brick
gitea:
- /data/glusterfs/gitea/brick1/brick
jenkins:
- /data/glusterfs/jenkins/brick1/brick
distributed_volumes:
tmp:
- /data/glusterfs/tmp/brick1/brick
elasticsearch:
- /data/glusterfs/elasticsearch/brick1/brick
roles:
- glusterfs
# - td-agent-bit
post_tasks:
- name: check service is up
service: name=glusterfs-server state=started