add playbook
This commit is contained in:
19
glusterfs/ansible/setup_galery.yml
Normal file
19
glusterfs/ansible/setup_galery.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- hosts: glusterfs
|
||||
gather_facts: true
|
||||
become: false
|
||||
|
||||
tasks:
|
||||
- name: "Install GlusterFS on all nodes"
|
||||
ansible.builtin.package:
|
||||
name: glusterfs-server
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: "Start and enable GlusterFS service"
|
||||
ansible.builtin.service:
|
||||
name: glusterd
|
||||
state: started
|
||||
enabled: true
|
||||
become: true
|
||||
Reference in New Issue
Block a user