Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error for install debian 6&7 #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
lesmyrmidons marked this conversation as resolved.
Show resolved Hide resolved
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