Browse Source

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 <champetier.etienne@gmail.com>
pull/5372/head
Etienne Champetier 4 years ago
committed by GitHub
parent
commit
096de82fd9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/recover_control_plane/etcd/tasks/main.yml

2
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']

Loading…
Cancel
Save