Disable MOTD stuff

Cosmetic, yes, but annoying. Very annoying.
This commit is contained in:
Salt 2020-03-26 10:00:22 -05:00
parent f856ca4fe6
commit 40ab5434c6

View File

@ -17,3 +17,27 @@
- python-apt - python-apt
- vim - vim
become: yes become: yes
- name: Configure MOTD
block:
- name: Disable MOTD news
copy:
src: "motd-news"
dest: "/etc/default/motd-news"
- name: Disable default update-motd tasks
file:
path: "/etc/update-motd.d/{{ item }}"
# Unset executable bit is the important part here
mode: "0644"
loop:
- "00-header"
- "10-help-text"
- "50-landscape-sysinfo"
- "50-motd-news"
- "80-esm"
- "80-livepatch"
- "90-updates-available"
- "91-release-upgrade"
- "92-unattended-upgrades"
- "95-hwe-eol"
- "97-overlayroot"
become: yes