Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Fix addition of certs for wrong when condition. Closes #472. (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
chambridge committed Nov 14, 2017
1 parent 7d67baa commit d45bc2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roles/redhat_packages/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@
- 'redhat-packages.results'
when: gather_redhat_packages

- name: initialize redhat-packages.certs fact
set_fact:
redhat_packages_certs: ''
when: gather_certs

- name: gather redhat-packages.certs fact
raw: ls /etc/pki/product/ | grep '.pem'
register: redhat_packages_certs_cmd
Expand All @@ -155,4 +160,4 @@
redhat_packages: "{{ redhat_packages|default({}) | combine({ item: redhat_packages_certs }) }}"
with_items:
- 'redhat-packages.certs'
when: gather_redhat_packages
when: gather_certs

0 comments on commit d45bc2f

Please sign in to comment.