Avoid deprecation warning on Ansible evaluating bare variables as bool

This commit is contained in:
Hakoen 2022-08-03 12:45:37 +00:00
parent c6297ddebb
commit eff66e7b3b

View File

@ -24,7 +24,7 @@
mode: 0750
when:
- certbot_create_standalone_stop_services is defined
- certbot_create_standalone_stop_services
- certbot_create_standalone_stop_services | length
- 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
- certbot_create_standalone_stop_services | length
- name: Generate new certificate if one doesn't exist.
command: "{{ certbot_create_command }}"