jnv / ansible-role-unattended-upgrades

[DEPRECATED] Setup unattended-upgrades on Debian-based systems
https://github.com/jnv/ansible-role-unattended-upgrades/issues/98
GNU General Public License v2.0
272 stars 94 forks source link

Deprecation Warning for install update-notifier-common task #61

Closed dmp1ce closed 5 years ago

dmp1ce commented 5 years ago

I get the following warning when running my playbook.

ansible version 2.8.0 jnv.unattended-upgrades version: v1.7.0

TASK [jnv.unattended-upgrades : install update-notifier-common] ******************************************************************************************************************************************************************************
[DEPRECATION WARNING]: evaluating unattended_automatic_reboot 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. 

My role definition:

    - role: jnv.unattended-upgrades
      vars:
        unattended_origins_patterns:
          - 'origin=Ubuntu,archive=${distro_codename}-security'
        unattended_automatic_reboot: true
      when: "unattended_upgrades|bool"