ansible_public/playbooks/fast_fixes/reconfigure_ldap.yaml

15 lines
406 B
YAML
Raw Permalink Normal View History

2022-06-14 18:53:16 +02:00
- 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