- name:Skip explicit auth tests on FreeBSD as Heimdal there does not have gss_acquire_cred_with_password
when:ansible_facts.os_family != 'FreeBSD'
block:
- name:test Negotiate auth over HTTP with explicit credentials
get_url:
url:http://{{ httpbin_host }}/gssapi
@ -21,18 +18,6 @@
- http_explicit.status_code == 200
- http_explicit_actual.content | b64decode | trim == 'Microsoft Rulz'
- name:FreeBSD - verify it fails with explicit credential
get_url:
url:http://{{ httpbin_host }}/gssapi
dest:'{{ remote_tmp_dir }}/gssapi_explicit.txt'
use_gssapi:yes
url_username:'{{ krb5_username }}'
url_password:'{{ krb5_password }}'
register:explicit_failure
when:ansible_facts.os_family == 'FreeBSD'
failed_when:
- '"Platform GSSAPI library does not support gss_acquire_cred_with_password, cannot acquire GSSAPI credential with explicit username and password" not in explicit_failure.msg'
- name:skip tests on macOS, I cannot seem to get it to read a credential from a custom ccache
- name:Skip explicit auth tests on FreeBSD as Heimdal there does not have gss_acquire_cred_with_password
when:ansible_facts.os_family != 'FreeBSD'
block:
- name:test Negotiate auth over HTTP with explicit credentials
uri:
url:http://{{ httpbin_host }}/gssapi
@ -34,17 +31,6 @@
- https_explicit.status == 200
- https_explicit.content | trim == 'Microsoft Rulz'
- name:FreeBSD - verify it fails with explicit credential
uri:
url:https://{{ httpbin_host }}/gssapi
use_gssapi:yes
url_username:'{{ krb5_username }}'
url_password:'{{ krb5_password }}'
register:explicit_failure
when:ansible_facts.os_family == 'FreeBSD'
failed_when:
- '"Platform GSSAPI library does not support gss_acquire_cred_with_password, cannot acquire GSSAPI credential with explicit username and password" not in explicit_failure.msg'
- name:skip tests on macOS, I cannot seem to get it to read a credential from a custom ccache