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