Add code to install user defined custom config files
This commit is contained in:
parent
966c80efd9
commit
f6cc5f9746
@ -86,6 +86,34 @@
|
||||
- Restart Samba services
|
||||
tags: samba
|
||||
|
||||
- name: Install global include file
|
||||
template:
|
||||
src: "{{ samba_global_include }}"
|
||||
dest: "{{ samba_configuration_dir }}"
|
||||
validate: 'testparm -s %s'
|
||||
when: samba_global_include is defined
|
||||
notify:
|
||||
- Restart Samba services
|
||||
|
||||
- name: Install homes include file
|
||||
template:
|
||||
src: "{{ samba_homes_include }}"
|
||||
dest: "{{ samba_configuration_dir }}"
|
||||
validate: 'testparm -s %s'
|
||||
when: samba_homes_include is defined
|
||||
notify:
|
||||
- Restart Samba services
|
||||
|
||||
- name: Install share specific include files
|
||||
template:
|
||||
src: "{{ item.include_file }}"
|
||||
dest: "{{ samba_configuration_dir }}"
|
||||
validate: 'testparm -s %s'
|
||||
when: item.include_file is defined
|
||||
notify:
|
||||
- Restart Samba services
|
||||
with_items: "{{ samba_shares }}"
|
||||
|
||||
- name: Create username map file if needed
|
||||
template:
|
||||
dest: "{{ samba_username_map_file }}"
|
||||
|
@ -10,8 +10,9 @@ samba_vfs_packages: []
|
||||
samba_selinux_packages: []
|
||||
samba_selinux_booleans: []
|
||||
|
||||
samba_configuration: /etc/samba/smb.conf
|
||||
samba_username_map_file: /etc/samba/smbusers
|
||||
samba_configuration_dir: /etc/samba
|
||||
samba_configuration: "{{ samba_configuration_dir }}/smb.conf"
|
||||
samba_username_map_file: "{{ samba_configuration_dir }}/smbusers"
|
||||
|
||||
samba_services:
|
||||
- smbd
|
||||
|
@ -12,8 +12,9 @@ samba_vfs_packages:
|
||||
samba_selinux_packages: []
|
||||
samba_selinux_booleans: []
|
||||
|
||||
samba_configuration: /etc/samba/smb.conf
|
||||
samba_username_map_file: /etc/samba/smbusers
|
||||
samba_configuration_dir: /etc/samba
|
||||
samba_configuration: "{{ samba_configuration_dir }}/smb.conf"
|
||||
samba_username_map_file: "{{ samba_configuration_dir }}/smbusers"
|
||||
|
||||
# The name of the Samba service in older releases (Ubuntu 14.04,
|
||||
# Debian <8) is "samba".
|
||||
|
@ -15,8 +15,9 @@ samba_selinux_booleans:
|
||||
- samba_enable_home_dirs
|
||||
- samba_export_all_rw
|
||||
|
||||
samba_configuration: /etc/samba/smb.conf
|
||||
samba_username_map_file: /etc/samba/smbusers
|
||||
samba_configuration_dir: /etc/samba
|
||||
samba_configuration: "{{ samba_configuration_dir }}/smb.conf"
|
||||
samba_username_map_file: "{{ samba_configuration_dir }}/smbusers"
|
||||
|
||||
samba_services:
|
||||
- smb
|
||||
|
Loading…
Reference in New Issue
Block a user