Fix yamllint warnings
This commit is contained in:
parent
5d25692f88
commit
9eb5e7e767
@ -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
|
||||||
@ -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