Fix yamllint warnings
This commit is contained in:
parent
5d25692f88
commit
9eb5e7e767
@ -4,8 +4,8 @@
|
|||||||
- name: Include OS specific variables
|
- name: Include OS specific variables
|
||||||
include_vars: "{{ item }}"
|
include_vars: "{{ item }}"
|
||||||
with_first_found:
|
with_first_found:
|
||||||
- "os_{{ ansible_distribution }}.yml"
|
- "os_{{ ansible_distribution }}.yml"
|
||||||
- "os_{{ ansible_os_family }}.yml"
|
- "os_{{ ansible_os_family }}.yml"
|
||||||
tags: samba
|
tags: samba
|
||||||
|
|
||||||
- name: Install Samba packages
|
- name: Install Samba packages
|
||||||
@ -26,8 +26,8 @@
|
|||||||
- name: Make sure SELinux boolean settings are correct
|
- name: Make sure SELinux boolean settings are correct
|
||||||
seboolean:
|
seboolean:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: yes
|
state: true
|
||||||
persistent: yes
|
persistent: true
|
||||||
with_items: "{{ samba_selinux_booleans }}"
|
with_items: "{{ samba_selinux_booleans }}"
|
||||||
when: ansible_selinux is defined and ansible_selinux.status == 'enabled'
|
when: ansible_selinux is defined and ansible_selinux.status == 'enabled'
|
||||||
tags: samba
|
tags: samba
|
||||||
@ -65,7 +65,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
|
||||||
tags: samba
|
tags: samba
|
||||||
|
|
||||||
- name: Samba configuration
|
- name: Samba configuration
|
||||||
@ -90,15 +90,15 @@
|
|||||||
service:
|
service:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: true
|
||||||
with_items: "{{ samba_services }}"
|
with_items: "{{ samba_services }}"
|
||||||
tags: samba
|
tags: samba
|
||||||
|
|
||||||
- name: Create Samba users if they don't exist yet
|
- name: Create Samba users if they don't exist yet
|
||||||
shell: >
|
shell: >
|
||||||
(pdbedit --user={{ item.name }} 2>&1 > /dev/null) \
|
(pdbedit --user="{{ item.name }}" 2>&1 > /dev/null) \
|
||||||
|| (echo {{ item.password }}; echo {{ item.password }}) \
|
|| (echo {{ item.password }}; echo {{ item.password }}) \
|
||||||
| smbpasswd -s -a {{ item.name }}
|
| smbpasswd -s -a "{{ item.name }}"
|
||||||
with_items: "{{ samba_users }}"
|
with_items: "{{ samba_users }}"
|
||||||
register: create_user_output
|
register: create_user_output
|
||||||
changed_when: "'Added user' in create_user_output.stdout"
|
changed_when: "'Added user' in create_user_output.stdout"
|
||||||
|
Loading…
Reference in New Issue
Block a user