From 096de82fd989c0e66b20595e103f392d3f06d566 Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Fri, 20 Mar 2020 17:22:06 -0400 Subject: [PATCH] Fixup recover_control_plane with Ansible 2.9 (#5806) Tests as filters support is removed as of Ansible 2.9 https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#jinja-tests-used-as-filters Signed-off-by: Etienne Champetier --- roles/recover_control_plane/etcd/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/recover_control_plane/etcd/tasks/main.yml b/roles/recover_control_plane/etcd/tasks/main.yml index 92c275a1f..d199749cc 100644 --- a/roles/recover_control_plane/etcd/tasks/main.yml +++ b/roles/recover_control_plane/etcd/tasks/main.yml @@ -12,7 +12,7 @@ - name: Set healthy fact set_fact: - healthy: "{{ etcd_endpoint_health.stderr | match('Error: unhealthy cluster') }}" + healthy: "{{ etcd_endpoint_health.stderr is match('Error: unhealthy cluster') }}" when: - groups['broken_etcd']