diff --git a/README.md b/README.md index 081cbe1..342ae85 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ them are as follows: Examples -------- -1) Configure an OpenLDAP server without SSL: +Configure an OpenLDAP server without SSL: - hosts: all sudo: true @@ -38,7 +38,8 @@ Examples openldap_server_rootpw: passme openldap_server_enable_ssl: false -2) Configure an OpenLDAP server with SSL: + +Configure an OpenLDAP server with SSL: - hosts: all sudo: true @@ -66,5 +67,3 @@ Author Information ------------------ Benno Joy - - diff --git a/meta/main.yml b/meta/main.yml index dce6ead..f7f6fa2 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -8,6 +8,7 @@ galaxy_info: versions: - 5 - 6 + - 7 - name: Fedora versions: - 16 diff --git a/tasks/configure_ldap.yml b/tasks/configure_ldap.yml index 12929d6..28b7cd8 100644 --- a/tasks/configure_ldap.yml +++ b/tasks/configure_ldap.yml @@ -44,4 +44,4 @@ register: result - name: add the base domain - shell: ldapadd -x -D "cn=Manager,dc={{ openldap_server_domain_name.split('.')[0] }},dc={{ openldap_server_domain_name.split('.')[1] }}" -w {{ openldap_server_rootpw }} -f {{ result.dest|default(result.path) }} && touch {{ openldap_server_app_path }}/rootdn_created creates={{ openldap_server_app_path }}/rootdn_created + shell: ldapadd -x -h localhost -D "cn=Manager,dc={{ openldap_server_domain_name.split('.')[0] }},dc={{ openldap_server_domain_name.split('.')[1] }}" -w {{ openldap_server_rootpw }} -f {{ result.dest|default(result.path) }} && touch {{ openldap_server_app_path }}/rootdn_created creates={{ openldap_server_app_path }}/rootdn_created diff --git a/tasks/install_ldap.yml b/tasks/install_ldap.yml index c2aba5e..62a9979 100644 --- a/tasks/install_ldap.yml +++ b/tasks/install_ldap.yml @@ -5,13 +5,13 @@ - name: Install the openldap and required Packages for RedHat yum: name={{ item }} state=installed - with_items: openldap_server_pkgs + with_items: "{{ openldap_server_pkgs }}" when: ansible_os_family == 'RedHat' - name: Install the openldap and required Packages for Ubuntu apt: name={{ item }} state=installed update_cache=yes - with_items: openldap_server_pkgs + with_items: "{{ openldap_server_pkgs }}" environment: env when: ansible_os_family == 'Debian'