mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-28 04:22:18 +08:00
34 lines
640 B
YAML
34 lines
640 B
YAML
---
|
|
|
|
- name: install needed packages
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- glusterfs-fuse
|
|
tags:
|
|
- packages
|
|
|
|
- name: make the mountdir
|
|
file:
|
|
state: directory
|
|
path: "{{ mountdir }}"
|
|
owner: "{{ owner }}"
|
|
group: "{{ group }}"
|
|
|
|
- name: copy over the client config
|
|
template:
|
|
src: client.config
|
|
dest: /etc/glusterfs/glusterfs.{{glusterservername}}.vol
|
|
mode: 0640
|
|
#notify:
|
|
#- remount? no idea...
|
|
|
|
- name: mount it up
|
|
mount:
|
|
src: /etc/glusterfs/glusterfs.{{glusterservername}}.vol
|
|
state: mounted
|
|
fstype: glusterfs
|
|
name: "{{mountdir}}"
|
|
ignore_errors: True
|