glsuterfs_client.yml ※gluster_main_host/glsuter_backup_hostsを適宜書き換えてください。
- hosts: glusterfs_client
vars:
gluster_main_host: gfshost1
gluster_backup_hosts: gfshost2
roles:
- glusterfs_client
roles/glusterfs-client/tasks/main.yml
---
- name: create /glusterfs directroy
file: path=/glusterfs state=directory
become: true
- name: install glusterfs-client
apt: name=glusterfs-client state=present update_cache=yes
become: true
- name: mount glusterfs
mount:
state: mounted
path: /glusterfs
fstype: glusterfs
src: "{{ gluster_main_host }}:/gfs"
opts: defaults,_netdev,backup-volfile-servers={{ gluster_backup_hosts }}
dump: "0"
passno: "0"
become: true
〇動作確認環境
・Ubuntu 18.04
0 件のコメント:
コメントを投稿