summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2021-02-18 00:23:26 +0000
committerAnoop C S <anoopcs@cryptolab.net>2021-03-23 16:47:53 +0530
commit01eb268fb39da89ea78acd919bac9662de96a4c0 (patch)
treea93578c732fdc386897b010f313651087e2ed2ee
parentdfb23d5b25861f543dda1b04ed4686b89c0a25c5 (diff)
downloadsamba-integration-01eb268fb39da89ea78acd919bac9662de96a4c0.tar.gz
samba-integration-01eb268fb39da89ea78acd919bac9662de96a4c0.tar.xz
samba-integration-01eb268fb39da89ea78acd919bac9662de96a4c0.zip
Add distro specific actions for glusterfs.setup
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
-rw-r--r--vagrant/ansible/roles/glusterfs.setup/tasks/centos7.yml5
-rw-r--r--vagrant/ansible/roles/glusterfs.setup/tasks/main.yml10
2 files changed, 9 insertions, 6 deletions
diff --git a/vagrant/ansible/roles/glusterfs.setup/tasks/centos7.yml b/vagrant/ansible/roles/glusterfs.setup/tasks/centos7.yml
new file mode 100644
index 0000000..9e40547
--- /dev/null
+++ b/vagrant/ansible/roles/glusterfs.setup/tasks/centos7.yml
@@ -0,0 +1,5 @@
+# https://github.com/gluster/samba-integration/issues/123
+- name: Install glusterfs-geo-replication package.
+ yum:
+ name: glusterfs-geo-replication
+ state: latest
diff --git a/vagrant/ansible/roles/glusterfs.setup/tasks/main.yml b/vagrant/ansible/roles/glusterfs.setup/tasks/main.yml
index b7ca5bd..2fa024a 100644
--- a/vagrant/ansible/roles/glusterfs.setup/tasks/main.yml
+++ b/vagrant/ansible/roles/glusterfs.setup/tasks/main.yml
@@ -1,15 +1,13 @@
+- name: Run distro specific tasks for glusterfs.setup
+ include_tasks:
+ file: "{{ distro.actions_file }}"
+
- include_role:
name: gluster.infra
- name: Enable firewall rules for gluster
firewalld: service=glusterfs permanent=yes state=enabled
-# https://github.com/gluster/samba-integration/issues/123
-- name: Install glusterfs-geo-replication package.
- yum:
- name: glusterfs-geo-replication
- state: latest
-
- name: Ensure glusterd service is enabled
service: name=glusterd state=started enabled=yes