Fix some ansible-lint complaints.
This commit is contained in:
parent
c7030c9245
commit
2cf34e8e55
64 changed files with 357 additions and 297 deletions
|
@ -9,8 +9,7 @@
|
|||
name:
|
||||
- samba
|
||||
- sssd-ldap
|
||||
state: latest
|
||||
|
||||
state: latest # noqa package-latest
|
||||
|
||||
- name: provide identities from LDAP
|
||||
template:
|
||||
|
@ -19,8 +18,8 @@
|
|||
mode: 0600
|
||||
notify: restart sssd
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
- name: flush all handlers
|
||||
meta: flush_handlers
|
||||
|
||||
- name: prepare samba schema
|
||||
command: cp /usr/share/doc/samba/examples/LDAP/samba.ldif /etc/ldap/schema/
|
||||
|
@ -87,8 +86,8 @@
|
|||
- name: slurp admin password for samba setup
|
||||
slurp:
|
||||
src: "{{ ldap_admin_pwd_file }}"
|
||||
register: ldap_admin_pwd
|
||||
no_log: true
|
||||
register: ldap_admin_pwd
|
||||
no_log: true
|
||||
when: not samba_ldap.stat.exists
|
||||
|
||||
- name: make samba admin password available to smbd
|
||||
|
@ -97,9 +96,10 @@
|
|||
notify: restart smbd
|
||||
when: not samba_ldap.stat.exists
|
||||
|
||||
- meta: flush_handlers
|
||||
- name: flush all handlers
|
||||
meta: flush_handlers
|
||||
|
||||
- name: add samba attributes to dummy user foo
|
||||
- name: add samba attributes to dummy user foo
|
||||
command:
|
||||
cmd: smbpasswd -s -a foo
|
||||
stdin: "{{ foo_pwd }}\n{{ foo_pwd }}"
|
||||
|
@ -111,8 +111,8 @@
|
|||
firewalld:
|
||||
zone: internal
|
||||
service: "{{ item }}"
|
||||
permanent: yes
|
||||
immediate: yes
|
||||
permanent: true
|
||||
immediate: true
|
||||
state: enabled
|
||||
with_items:
|
||||
- samba
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue