updated to fail the play if the component fails to start.
diff --git a/tasks/main.yml b/tasks/main.yml index f79a312..2102baf 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -10,13 +10,13 @@ pause: seconds: '{{ component_start_delay | default(1) }}' - - name: Validating that component started + - name: Validate component status shell: '{{ apigee_all }} status' when: opdk_version | version_compare('4.16.01', '>=') rescue: - - name: Checking to see if failure was real by starting the components + - name: Validate status failed, trying component start... shell: '{{ apigee_all }} start' when: opdk_version | version_compare('4.16.01', '>=') @@ -24,6 +24,6 @@ pause: seconds: '{{ component_start_delay | default(1) }}' - - name: Validating that component started - shell: '{{ apigee_all }} status' - when: opdk_version | version_compare('4.16.01', '>=') + - name: Validating component status a second time + shell: '{{ apigee_all }} status' + when: opdk_version | version_compare('4.16.01', '>=')