15 lines
406 B
YAML
15 lines
406 B
YAML
|
- hosts: '{{ variable_host | default("lab15_standard") }}'
|
||
|
gather_facts: no
|
||
|
become: yes
|
||
|
|
||
|
tasks:
|
||
|
- name: Comment rootbinddn in /etc/ldap.conf
|
||
|
lineinfile:
|
||
|
path: /etc/ldap.conf
|
||
|
regexp: 'rootbinddn cn=root,dc=kcir,dc=pwr,dc=edu,dc=pl'
|
||
|
line: '#rootbinddn cn=root,dc=kcir,dc=pwr,dc=edu,dc=pl'
|
||
|
backrefs: yes
|
||
|
|
||
|
- name: remove /etc/ldap.secret
|
||
|
shell: rm /etc/ldap.secret
|