-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from mwilck/ldapi
- Loading branch information
Showing
3 changed files
with
53 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,17 @@ | ||
--- | ||
- block: | ||
- name: Configure enforcing of TLS | ||
ldap_attrs: | ||
server_uri: "{{ dirsrv_server_uri }}" | ||
validate_certs: "{{ dirsrv_tls_certificate_trusted }}" | ||
start_tls: "{{ dirsrv_tls_enforced }}" | ||
bind_dn: "{{ dirsrv_rootdn }}" | ||
bind_pw: "{{ dirsrv_rootdn_password }}" | ||
dn: "cn=config" | ||
attributes: | ||
nsslapd-require-secure-binds: "{{ 'on' if dirsrv_tls_enforced else 'off' }}" | ||
nsslapd-minssf: "{{ dirsrv_tls_minssf if dirsrv_tls_enforced else '0' }}" | ||
nsslapd-localssf: "{{ dirsrv_tls_minssf if dirsrv_tls_enforced else '0' }}" | ||
state: exact | ||
failed_when: false | ||
tags: [ dirsrv_tls ] | ||
register: dirsrv_restart_condition_tls_enforcing_1 | ||
|
||
rescue: | ||
- name: Configure enforcing of TLS, over TLS | ||
ldap_attrs: | ||
server_uri: "{{ dirsrv_server_uri }}" | ||
validate_certs: "{{ dirsrv_tls_certificate_trusted }}" | ||
start_tls: "{{ dirsrv_tls_enforced }}" | ||
bind_dn: "{{ dirsrv_rootdn }}" | ||
bind_pw: "{{ dirsrv_rootdn_password }}" | ||
dn: "cn=config" | ||
attributes: | ||
nsslapd-require-secure-binds: "{{ 'on' if dirsrv_tls_enforced else 'off' }}" | ||
nsslapd-minssf: "{{ dirsrv_tls_minssf if dirsrv_tls_enforced else '0' }}" | ||
nsslapd-localssf: "{{ dirsrv_tls_minssf if dirsrv_tls_enforced else '0' }}" | ||
state: exact | ||
tags: [ dirsrv_tls ] | ||
register: dirsrv_restart_condition_tls_enforcing_2 | ||
- name: Configure enforcing of TLS | ||
ldap_attrs: | ||
server_uri: "{{ dirsrv_server_uri }}" | ||
validate_certs: "{{ dirsrv_tls_certificate_trusted }}" | ||
start_tls: "{{ dirsrv_tls_enforced }}" | ||
bind_dn: "{{ dirsrv_rootdn }}" | ||
bind_pw: "{{ dirsrv_rootdn_password }}" | ||
dn: "cn=config" | ||
attributes: | ||
nsslapd-require-secure-binds: "{{ 'on' if dirsrv_tls_enforced else 'off' }}" | ||
nsslapd-minssf: "{{ dirsrv_tls_minssf if dirsrv_tls_enforced else '0' }}" | ||
nsslapd-localssf: "{{ dirsrv_tls_minssf if dirsrv_tls_enforced else '0' }}" | ||
state: exact | ||
failed_when: false | ||
tags: [ dirsrv_tls ] | ||
register: dirsrv_restart_condition_tls_enforcing_1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters