Attempt to resolve #23 entirely without a json_query().

This commit is contained in:
Jeff Geerling
2020-02-13 15:47:24 -06:00
parent 15641b6323
commit a75593c36a
4 changed files with 1 additions and 58 deletions

View File

@@ -262,15 +262,13 @@
reason: DeploymentPaused
register: pause_deploy
- debug: var=pause_deploy
- name: Check that paused deployment wait worked
assert:
that:
- condition.reason == "DeploymentPaused"
- condition.status == "Unknown"
vars:
condition: '{{ pause_deploy.result.status.conditions | community.general.json_query("[?type==`Progressing`]") | first }}'
condition: '{{ pause_deploy.result.status.conditions[1] }}'
- name: Add a service based on the deployment
k8s: