diff --git a/molecule/default/tasks/awx_test.yml b/molecule/default/tasks/awx_test.yml index 7f537b630..872927aa2 100644 --- a/molecule/default/tasks/awx_test.yml +++ b/molecule/default/tasks/awx_test.yml @@ -129,10 +129,6 @@ - name: Validate demo job launch block: - - name: fail early - fail: - msg: "This is a failure" - - name: Launch Demo Job Template awx.awx.job_launch: name: Demo Job Template @@ -141,6 +137,10 @@ controller_host: localhost/awx/ controller_username: admin controller_password: "{{ admin_pw_secret.resources[0].data.password | b64decode }}" + + - name: DEBUG FAIL + fail: + msg: "DEBUG FAIL" rescue: - name: Get list of project updates and jobs uri: @@ -155,10 +155,6 @@ loop_control: loop_var: resource - - name: DEBUG print job_lists - debug: - var: job_lists - - name: Store job_lists debug output copy: content: "{{ job_lists | to_nice_json }}" diff --git a/molecule/default/utils/output_all_container_logs_for_pod.yml b/molecule/default/utils/output_all_container_logs_for_pod.yml index 3c6ee2965..d4e32461c 100644 --- a/molecule/default/utils/output_all_container_logs_for_pod.yml +++ b/molecule/default/utils/output_all_container_logs_for_pod.yml @@ -8,7 +8,7 @@ - name: Store logs in file ansible.builtin.copy: - content: '{{ all_container_logs.log_lines | join("\n") }}' + content: "{{ all_container_logs.log_lines | join('\n') }}" dest: '{{ debug_output_dir }}/{{ item.metadata.name }}.log' # TODO: all_containser option dump all of the output in a single output make it hard to read we probably should iterate through each of the container to get specific logs