Try this if statement

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-10-09 00:23:41 +00:00
parent b446cec41b
commit 53f762b281

View file

@ -185,7 +185,7 @@
- name: Restart sshd in case we just signed a new certificate so it gets applied
service: name=sshd state=restarted
when: "certs_to_sign | length != 0"
when: "certs_to_sign != []"
tags:
- basessh
- sshd_cert