roles/common: Disable Canonical spam in MOTD

This commit is contained in:
Alan Orth 2018-12-20 10:27:52 +02:00
parent 49cfbc4c47
commit 91356ab364
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -48,6 +48,16 @@
- name: Remove packages - name: Remove packages
apt: name={{ ubuntu_annoying_packages }} state=absent purge=yes apt: name={{ ubuntu_annoying_packages }} state=absent purge=yes
- name: Disable annoying Canonical spam in MOTD
file: path={{ item }} mode=0644
loop:
- /etc/update-motd.d/99-esm # Ubuntu 14.04
- /etc/update-motd.d/10-help-text # Ubuntu 16.04+
- /etc/update-motd.d/50-motd-news # Ubuntu 18.04+
- /etc/update-motd.d/80-esm # Ubuntu 18.04+
- /etc/update-motd.d/80-livepatch # Ubuntu 18.04+
ignore_errors: yes
- name: Configure cron-apt - name: Configure cron-apt
import_tasks: cron-apt.yml import_tasks: cron-apt.yml
tags: cron-apt tags: cron-apt