---
- name: install update-notifier-common
  apt: pkg=update-notifier-common state=present
  register: install_reboot_dependency
  ignore_errors: true

- name: abort if automatic reboot is unavailable
  fail: msg="The unattended_automatic_reboot option was selected but the system has no means to reboot automatically"
  when: install_reboot_dependency | failed


---
# Ignored, since newer distros don't need this package
# https://github.com/jnv/ansible-role-unattended-upgrades/issues/6
- name: install update-notifier-common
  apt: pkg=update-notifier-common state=present
  ignore_errors: true


Remove conditional failure for update-notifier-common
Remove conditional failure for update-notifier-common

Fixes #6
