Fix deprecation warnings for Ansible 2.8.1

This commit is contained in:
Bert Van Vreckem 2019-06-22 17:56:34 +02:00
parent c01efd669e
commit 598c9fda9a

View File

@ -58,7 +58,7 @@
owner: root
group: root
mode: '0755'
when: samba_shares
when: samba_shares|length > 0
tags: samba
- name: Create share directories
@ -76,7 +76,7 @@
file:
name: "{{ samba_www_documentroot }}"
state: directory
when: samba_create_varwww_symlinks
when: samba_create_varwww_symlinks|bool
tags: samba
- name: Create link to shares in webserver document root
@ -85,7 +85,7 @@
path: "{{ samba_www_documentroot }}/{{ item.name }}"
src: "{{ item.path|default([samba_shares_root,item.name]|join('/')) }}"
with_items: "{{ samba_shares }}"
when: samba_create_varwww_symlinks
when: samba_create_varwww_symlinks|bool
tags: samba
- name: Samba configuration