ansible/roles/common/tasks/main.yml
Salt 40ab5434c6 Disable MOTD stuff
Cosmetic, yes, but annoying. Very annoying.
2020-03-26 10:00:22 -05:00

44 lines
946 B
YAML

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Update and upgrade apt packages
apt:
upgrade: "yes"
update_cache: yes
# One day
cache_valid_time: 86400
become: yes
- name: Install basic packages
apt:
name: "{{ packages }}"
vars:
packages:
- aptitude
- 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