Skip to content

Commit

Permalink
Adding cacheable variable to parse_leapp_report
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaleb Stolee committed Sep 20, 2024
1 parent e2a83b4 commit 91fc631
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/parse_leapp_report/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
# defaults file for parse_leapp_report
result_filename_prefix: /var/log/leapp/leapp-report
result_filename_json: "{{ result_filename_prefix }}.json"

result_fact_cacheable: false
...
2 changes: 2 additions & 0 deletions roles/parse_leapp_report/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@

- name: Parse report results
ansible.builtin.set_fact:
cacheable: "{{ result_fact_cacheable }}"
leapp_report_txt: "{{ results_txt.content | b64decode | split('\n') }}"
leapp_report_json: "{{ results_json.content | b64decode | from_json }}"

- name: Check for inhibitors
ansible.builtin.set_fact:
cacheable: "{{ result_fact_cacheable }}"
upgrade_inhibited: true
leapp_inhibitors: "{{ leapp_inhibitors | default([]) + [item] }}"
when:
Expand Down

0 comments on commit 91fc631

Please sign in to comment.