21 lines
483 B
YAML
21 lines
483 B
YAML
|
---
|
||
|
# Install apt-listchanges
|
||
|
- name: Install apt-listchanges
|
||
|
when: ansible_os_family == "Debian"
|
||
|
apt:
|
||
|
name: apt-listchanges
|
||
|
state: present
|
||
|
update_cache: yes
|
||
|
|
||
|
# Send email when there is something new
|
||
|
- name: Configure apt-listchanges
|
||
|
lineinfile:
|
||
|
dest: /etc/apt/listchanges.conf
|
||
|
regexp: "^{{ item.key }}="
|
||
|
line: "{{ item.value }}"
|
||
|
with_dict:
|
||
|
confirm: 'confirm=true'
|
||
|
email_address: "email_address={{ monitoring_mail }}"
|
||
|
which: 'which=both'
|
||
|
|