Skip to content

Commit

Permalink
Fix block
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysmeister committed Oct 5, 2024
1 parent be18aaa commit e4c4eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/targets/elastic_index/tasks/103.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
elastic_port: 9200
elastic_api_key_name: "test-api-key"

block:
tasks:

- name: Get Elasticsearch version
ansible.builtin.uri:
Expand All @@ -18,6 +18,8 @@
Content-Type: "application/json"
register: es_version_response

- name: Check if Elasticsearch version is greater than 7
when: es_version_response.json.version.number[0] | int > 7
block:

- name: Create an API key for Elasticsearch
Expand Down Expand Up @@ -55,5 +57,3 @@
that:
- result.msg == "The index 'myapikeyindex' was created."
- result.changed == True

when: es_version_response.json.version.number[0] | int > 7

0 comments on commit e4c4eac

Please sign in to comment.