geerlingguy / ansible-role-certbot

Ansible Role - Certbot (for Let's Encrypt)
https://galaxy.ansible.com/geerlingguy/certbot/
MIT License
793 stars 348 forks source link

[DEPRECATION WARNING]: evaluating u'certbot_create_standalone_stop_services' as a bare variable #193

Closed kom177 closed 1 year ago

kom177 commented 1 year ago

In: TASK [geerlingguy.certbot : Create pre hook to stop services.] and TASK [geerlingguy.certbot : Create post hook to start services.]

[DEPRECATION WARNING]: evaluating u'certbot_create_standalone_stop_services' as a bare variable, this 
behaviour will go away and you might need to add |bool to the expression in the future. Also see 
CONDITIONAL_BARE_VARS configuration toggle. This feature will be removed in version 2.12. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
vaunus commented 1 year ago

I had the same issue. If you don't have any services to stop like me just put:

certbot_create_standalone_stop_services: no

And the warning goes away it seems.

stale[bot] commented 1 year ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 1 year ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.