From 47ca9e1b14db1491dadbbc3c43e73fa1a60b57eb Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Thu, 12 May 2016 09:51:19 +0200 Subject: [PATCH] Moved hard coded SELinux boolean names to vars/ --- tasks/main.yml | 4 +--- vars/os_RedHat.yml | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index fc0f323..70c26d5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -25,9 +25,7 @@ name: "{{ item }}" state: yes persistent: yes - with_items: - - samba_enable_home_dirs - - samba_export_all_rw + with_items: "{{ samba_selinux_booleans }}" when: ansible_selinux - name: Create Samba shares root directory diff --git a/vars/os_RedHat.yml b/vars/os_RedHat.yml index 9f247d7..16c4a41 100644 --- a/vars/os_RedHat.yml +++ b/vars/os_RedHat.yml @@ -9,5 +9,9 @@ samba_packages: samba_selinux_packages: - libselinux-python +samba_selinux_booleans: + - samba_enable_home_dirs + - samba_export_all_rw + samba_service: smb winbind_service: nmb