summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2021-02-18 00:32:18 +0000
committerAnoop C S <anoopcs@cryptolab.net>2021-03-23 16:47:53 +0530
commit201bd195b365ede65b88801c5584b5c86da31fde (patch)
treedb939c49639fda3664ae16c8e13a6005a1961a71
parent9dfdf0ba0b9789e763b87340db8c9703eaecb1b5 (diff)
downloadsamba-integration-201bd195b365ede65b88801c5584b5c86da31fde.tar.gz
samba-integration-201bd195b365ede65b88801c5584b5c86da31fde.tar.xz
samba-integration-201bd195b365ede65b88801c5584b5c86da31fde.zip
Add distro specific actions for samba-glusterfs.setup
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
-rw-r--r--vagrant/ansible/roles/samba-glusterfs.setup/tasks/centos7.yml16
-rw-r--r--vagrant/ansible/roles/samba-glusterfs.setup/tasks/main.yml18
2 files changed, 19 insertions, 15 deletions
diff --git a/vagrant/ansible/roles/samba-glusterfs.setup/tasks/centos7.yml b/vagrant/ansible/roles/samba-glusterfs.setup/tasks/centos7.yml
new file mode 100644
index 0000000..c0f789b
--- /dev/null
+++ b/vagrant/ansible/roles/samba-glusterfs.setup/tasks/centos7.yml
@@ -0,0 +1,16 @@
+---
+- name: Install samba and samba-vfs-glusterfs packages
+ yum:
+ name:
+ - samba
+ - samba-vfs-glusterfs
+ state: present
+
+- name: Install libsemanage-python. This is needed for the seboolean ansible command
+ yum: name=libsemanage-python state=present
+
+- name: Selinux - Allow Samba to access glusterfs services
+ seboolean:
+ name: samba_load_libgfapi
+ state: yes
+ persistent: yes
diff --git a/vagrant/ansible/roles/samba-glusterfs.setup/tasks/main.yml b/vagrant/ansible/roles/samba-glusterfs.setup/tasks/main.yml
index 58617f2..b32e554 100644
--- a/vagrant/ansible/roles/samba-glusterfs.setup/tasks/main.yml
+++ b/vagrant/ansible/roles/samba-glusterfs.setup/tasks/main.yml
@@ -1,10 +1,7 @@
---
-- name: Install samba and samba-vfs-glusterfs packages
- yum:
- name:
- - samba
- - samba-vfs-glusterfs
- state: present
+- name: Run distro specific tasks for samba-glusterfs.setup
+ include_tasks:
+ file: "{{ distro.actions_file }}"
- name: Enable firewall for samba
firewalld:
@@ -12,15 +9,6 @@
permanent: yes
state: enabled
-- name: Install libsemanage-python. This is needed for the seboolean ansible command
- yum: name=libsemanage-python state=present
-
-- name: Selinux - Allow Samba to access glusterfs services
- seboolean:
- name: samba_load_libgfapi
- state: yes
- persistent: yes
-
- name: Create fresh directory /etc/samba/smb.shares to contain share definition
block:
- file: