Skip to content
Snippets Groups Projects
Commit 7d4910aa authored by Shahaan Ayyub's avatar Shahaan Ayyub
Browse files

Only replace is working in ldapmodify for rootdn

parent c8bd4c2d
No related branches found
No related tags found
No related merge requests found
---
-
hosts: ldap-server
#pre_tasks:
#- sysctl: name=kernel.hostname value={{ inventory_hostname }} state=present
# ignore_errors: yes
#- service: name=network state=restarted
# when: ansible_os_family == 'Redhat'
pre_tasks:
- sysctl: name=kernel.hostname value={{ inventory_hostname }} state=present
ignore_errors: yes
- service: name=network state=restarted
when: ansible_os_family == 'Redhat'
roles:
- etcHosts
- easy-rsa-CA
......@@ -41,6 +41,11 @@
- x509_common_name: "{{ inventory_hostname }}"
-
hosts: karaage-server
pre_tasks:
- sysctl: name=kernel.hostname value={{ inventory_hostname }} state=present
ignore_errors: yes
- service: name=network state=restarted
when: ansible_os_family == 'Redhat'
roles:
- etcHosts
- easy-rsa-certificate
......
dn: {{ dbname }},cn=config
changetype: modify
add: olcSuffix
replace: olcSuffix
olcSuffix: {{ ldapDomain }}
-
add: olcRootDN
replace: olcRootDN
olcRootDN: {{ ldapManager }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment