geerlingguy / ansible-role-varnish

Ansible Role - Varnish HTTP accelerator
https://galaxy.ansible.com/geerlingguy/varnish/
MIT License
80 stars 88 forks source link

Fix bare variable warning in 'Ensure Varnish services are started' task #93

Closed geerlingguy closed 4 years ago

geerlingguy commented 4 years ago

See example: https://travis-ci.org/geerlingguy/drupal-vm/jobs/652146023#L2202

TASK [geerlingguy.varnish : Ensure Varnish services are started enabled on startup (Xenial specific)] ***
[DEPRECATION WARNING]: evaluating [u'varnish'] 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.
skipping: [localhost] => (item=varnish)