diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index c3527bc..a79044d 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -17,3 +17,27 @@ - python-apt - vim 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