diff --git a/awx_collection/tests/integration/targets/tower_workflow_launch/tasks/main.yml b/awx_collection/tests/integration/targets/tower_workflow_launch/tasks/main.yml index e32ea4586c..3d3c41feb2 100644 --- a/awx_collection/tests/integration/targets/tower_workflow_launch/tasks/main.yml +++ b/awx_collection/tests/integration/targets/tower_workflow_launch/tasks/main.yml @@ -6,12 +6,7 @@ - name: Generate names set_fact: - wfjt_name1: "Testing Workflow Job Launch" # "AWX-Collection-tests-tower_workflow_launch--wfjt1-{{ test_id }}" - -- name: Clean up test workflow from any previous runs - tower_workflow_job_template: - name: "{{ wfjt_name1 }}" - state: absent + wfjt_name1: "AWX-Collection-tests-tower_workflow_launch--wfjt1-{{ test_id }}" - name: Create our workflow tower_workflow_job_template: @@ -74,3 +69,8 @@ that: - result is not failed - "'id' in result['job_info']" + +- name: Clean up test workflow + tower_workflow_job_template: + name: "{{ wfjt_name1 }}" + state: absent