Skip to content
Snippets Groups Projects
Commit 74684bb2 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

fail if ssl is not used ( except on CICD )

parent a8c56deb
No related branches found
No related tags found
1 merge request!313Mockldap without TLS enabled but capable
...@@ -5,7 +5,7 @@ temp_dir: /tmp/test-openldap-server ...@@ -5,7 +5,7 @@ temp_dir: /tmp/test-openldap-server
ldap_http_port: 389 ldap_http_port: 389
ldap_https_port: 636 ldap_https_port: 636
clean_all: true clean_all: true
ssl: false ssl: true
ssl_ca_cert: '' ssl_ca_cert: ''
ssl_cert: '' ssl_cert: ''
ssl_private_key: '' ssl_private_key: ''
--- ---
# tasks file for ansible-role-test-openldap-server # tasks file for ansible-role-test-openldap-server
- name: Fail if ssl is false and the hostname does not contain CICD
fail:
msg: Always enable ssl when not on the CICD pipeline. OR use the ldapserver role in the first place!
when: "'CICD' not in inventory_hostname and not ssl"
- name: Create {{temp_dir}} - name: Create {{temp_dir}}
file: file:
......
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