Skip to content

Commit

Permalink
Fixing a bug in "Check certs - key/certs data are provided, but tls is
Browse files Browse the repository at this point in the history
false" found by @avlitman.

This case must have failed the Check certs task.
> tls is false and certs+key defined: task was skipped.
  • Loading branch information
nhosoi committed Aug 19, 2021
1 parent 6cc20d4 commit 063643a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions roles/rsyslog/tasks/set_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@
with_items:
- '{{ __rsyslog_cert_subject }}'
when:
- not ((item.tls is defined) | ternary(item.tls, item.use_cert |
d(true)))
- item.ca_cert | d() or item.cert | d() or item.private_key | d()
- item.ca_cert_src | d() or
item.cert_src | d() or
item.private_key_src | d()
- not (item.tls is defined | ternary(item.tls, item.use_cert | d(true)))
- (item.ca_cert | d() or item.cert | d() or item.private_key | d()) or
(item.ca_cert_src | d() or item.cert_src | d() or
item.private_key_src | d())
when: __rsyslog_cert_subject | d([])

0 comments on commit 063643a

Please sign in to comment.