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: Manage apt-listchanges service
  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: debops.apt_listchanges
      tags: [ 'role::apt_listchanges' ]