Merge pull request #28 from thiagogomesverissimo/issue27

Enable a cups server to be used in this roles
This commit is contained in:
Bert Van Vreckem 2018-08-16 20:57:32 +02:00 committed by GitHub
commit dd0b2913aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# roles/samba/defaults/main.yml
#i roles/samba/defaults/main.yml
---
samba_workgroup: 'WORKGROUP'
@ -9,6 +9,8 @@ samba_security: 'user'
samba_passdb_backend: 'tdbsam'
samba_map_to_guest: 'bad user'
samba_load_printers: false
samba_printer_type: 'cups'
samba_cups_server: 'localhost:631'
samba_load_homes: false
samba_create_varwww_symlinks: false
samba_shares_root: '/srv/shares'

View File

@ -59,6 +59,13 @@
printing = bsd
printcap name = /dev/null
disable spoolss = yes
{% else %}
load printers = yes
printing = {{ samba_printer_type }}
printcap name = {{ samba_printer_type }}
{% if samba_printer_type == 'cups' %}
cups server = {{ samba_cups_server }}
{% endif %}
{% endif %}
{% if samba_mitigate_cve_2017_7494 %}