Getting started

Default configuration

By default only important NEWS changes will be sent by apt-listchanges to the system administrators. If the role detects that the apticron is installed, mails from APT operations will be disabled.

Example inventory

The debops.apt_listchanges role is included in the DebOps common.yml playbook and doesn't need to be enabled on a host.

Example playbook

If you are using this role without DebOps, here's an example Ansible playbook that uses the debops.apt_listchanges role:

---

- name: Configure apt-listchanges
  collections: [ 'debops.debops', 'debops.roles01',
                 'debops.roles02', 'debops.roles03' ]
  hosts: [ 'debops_all_hosts', 'debops_service_apt_listchanges' ]
  become: True

  environment: '{{ inventory__environment | d({})
                   | combine(inventory__group_environment | d({}))
                   | combine(inventory__host_environment  | d({})) }}'

  roles:

    - role: apt_listchanges
      tags: [ 'role::apt_listchanges', 'skip::apt_listchanges' ]