Have a boolean operator instead of bare var or lenght

This commit is contained in:
Hakoen 2022-08-03 13:16:17 +00:00
parent eff66e7b3b
commit 0b97320c72

View File

@ -24,7 +24,7 @@
mode: 0750
when:
- certbot_create_standalone_stop_services is defined
- certbot_create_standalone_stop_services | length
- certbot_create_standalone_stop_services | length > 0
- name: Create post hook to start services.
template:
@ -35,7 +35,7 @@
mode: 0750
when:
- certbot_create_standalone_stop_services is defined
- certbot_create_standalone_stop_services | length
- certbot_create_standalone_stop_services | length > 0
- name: Generate new certificate if one doesn't exist.
command: "{{ certbot_create_command }}"