Created
December 6, 2020 17:56
-
-
Save jdkelleher/8ef729d0856fd0ee49ad1ab663249735 to your computer and use it in GitHub Desktop.
Saltstack state to get ride of motd news in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable and clear motd news | |
# | |
disable motd news update: | |
file.comment: | |
- name: /etc/default/motd-news | |
- regex: '^ENABLED.*$' | |
- char: '#' | |
- backup: False | |
clear motd news cache: | |
file.absent: | |
- name: /var/cache/motd-news |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment