More reliable test

This commit is contained in:
Adrien Reslinger 2020-03-19 15:06:11 +01:00
parent 02d548d869
commit 67c2ec8108

View file

@ -26,7 +26,7 @@
basic_auth: "{{ basic_auth_data | b64encode }}" basic_auth: "{{ basic_auth_data | b64encode }}"
when: when:
- basic_auth == true - basic_auth == true
- traefik_version is not defined or traefik_version | regex_search('(1.)') - traefik_version is not defined or traefik_version | regex_search('(^1.)')
tags: weave tags: weave
- name: Remove a Secret object for basic authentification (traefik 1.7) - name: Remove a Secret object for basic authentification (traefik 1.7)
@ -44,7 +44,7 @@
basic_auth: "{{ basic_auth_data | b64encode }}" basic_auth: "{{ basic_auth_data | b64encode }}"
when: when:
- traefik_version is defined - traefik_version is defined
- traefik_version | regex_search('(2.)') - traefik_version | regex_search('(^2.)')
tags: weave tags: weave
- name: Remove old existing Ingress object - name: Remove old existing Ingress object
@ -57,7 +57,7 @@
name: weave name: weave
when: when:
- traefik_version is defined - traefik_version is defined
- traefik_version | regex_search('(2.)') - traefik_version | regex_search('(^2.)')
# file found https://github.com/weaveworks/scope/tree/master/examples/k8s/ # file found https://github.com/weaveworks/scope/tree/master/examples/k8s/
- name: Weave Scope files - name: Weave Scope files