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