---

- name: 'Install etckeeper'
  become: yes
  apt:
    name: 'etckeeper'

- name: 'Install packages'
  become: yes
  apt:
    name:
      - 'unattended-upgrades'
      - 'apt-listchanges'
      # - 'default-mta'

- name: 'Write 51unattended-upgrades-allow-all-origins'
  become: yes
  copy:
    src: '51unattended-upgrades-allow-all-origins'
    dest: '/etc/apt/apt.conf.d/'
    mode: '0644'