dj-wasabi / ansible-zabbix-agent

Installing and maintaining zabbix-agent for RedHat/Debian/Ubuntu/Windows/Suse.
https://galaxy.ansible.com/dj-wasabi/zabbix-agent
MIT License
327 stars 248 forks source link

Bare variable deprecation #272

Closed average-joe closed 5 years ago

average-joe commented 5 years ago

Description of PR PR resolves a deprecation warning when using Ansible v2.8.

[DEPRECATION WARNING]: evaluating None 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.

The variable itself remains unchanged, but the when statements using the variable is updated to evaluate against None.

Type of change

Bugfix Pull Request

Fixes an issue

Refer to PR Description.

dj-wasabi commented 5 years ago

Thanks! 👍