geerlingguy/ansible-role-certbot

Warning about evaluating certbot_create_standalone_stop_services as a bare variable

leonardehrenfried opened this issue · 2 comments

When using the following environment:

ansible 2.9.27
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/lenni/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.10.0 (default, Oct  4 2021, 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)]

I get the following warning:

TASK [geerlingguy.certbot : Create pre hook to stop services.] *******************************************************************************************************************************************************************************
[DEPRECATION WARNING]: evaluating '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.
ok: [infrastructure.stadtnavi.eu]

TASK [geerlingguy.certbot : Create post hook to start services.] *****************************************************************************************************************************************************************************
[DEPRECATION WARNING]: evaluating '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.
ok: [infrastructure.stadtnavi.eu]

I'm using version 4.2.0 of this module.

Thanks very much for making it!

stale commented

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.

stale commented

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.