Skip to content

Commit

Permalink
continue
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Apr 12, 2024
1 parent 96a83e8 commit 42a1806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions molecule/default/tasks/awx_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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 }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42a1806

Please sign in to comment.