Skip to content

Commit

Permalink
Improve logging in CI
Browse files Browse the repository at this point in the history
- Set AWX log level to DEBUG
- Fix failure to collect awx API output
  • Loading branch information
TheRealHaoLiu committed May 21, 2024
1 parent 3f0fd7f commit 5f77e30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions molecule/default/tasks/awx_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@
controller_password: "{{ admin_pw_secret.resources[0].data.password | b64decode }}"

rescue:
- name: Create debug output directory
ansible.builtin.file:
path: '{{ debug_output_dir }}'
state: directory
tags:
- always

- name: Get list of project updates and jobs
uri:
url: "http://localhost/awx/api/v2/{{ resource }}/"
Expand Down
3 changes: 3 additions & 0 deletions molecule/default/templates/awx_cr_molecule.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
additional_labels:
- my/team
- my/service
extra_settings:
- setting: LOG_AGGREGATOR_LEVEL
value: "'DEBUG'"
{% if additional_fields is defined %}
{{ additional_fields | to_nice_yaml | indent(2) }}
{% endif %}

0 comments on commit 5f77e30

Please sign in to comment.