Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ galaxy_info:
- quantal
- raring
- saucy
- name: Debian
- squeeze
- wheezy
categories:
- system
dependencies: []
10 changes: 5 additions & 5 deletions tasks/install_ldap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
file: path={{ openldap_server_app_path }}/slapd.d state=absent

- name: Generate the root password for ldap
shell: slappasswd -s {{ openldap_server_rootpw }}
shell: slappasswd -s {{ openldap_server_rootpw }}
register: root_password

- name: Copy the slapd.conf configuration file for Redhat
template: src=slapd.conf.j2 dest={{ openldap_server_app_path }}/slapd.conf
when: ansible_os_family == "RedHat"
notify:
notify:
- restart slapd

- name: Copy the slapd.conf configuration file
template: src=slapd.conf_ubuntu.j2 dest={{ openldap_server_app_path }}/slapd.conf
template: src=slapd.conf_ubuntu.j2 dest={{ openldap_server_app_path }}/slapd.conf owner={{ openldap_server_user }} group={{ openldap_server_user }} mode=0644
when: ansible_os_family == "Debian"
notify:
notify:
- restart slapd

- name: Copy the ldap.conf configuration file
template: src=ldap.conf.j2 dest={{ openldap_server_app_path }}/ldap.conf
template: src=ldap.conf.j2 dest={{ openldap_server_app_path }}/ldap.conf owner={{ openldap_server_user }} group={{ openldap_server_user }} mode=0644