Disable motd-news

This commit is contained in:
Salt 2021-09-07 14:54:54 -05:00
parent c362effe2a
commit 60454b6331

View File

@ -3,5 +3,10 @@
- name: remove default motd items - name: remove default motd items
file: state=absent path=/etc/update-motd.d/{{ item }} file: state=absent path=/etc/update-motd.d/{{ item }}
loop: "{{ motd_remove + motd_remove_extra }}" loop: "{{ motd_remove + motd_remove_extra }}"
- name: disable motd-news
systemd: name="{{ item }}" state=stopped enabled=no
with_items:
- motd-news.service
- motd-news.timer
- name: template out motd script - name: template out motd script
template: src=motd.sh dest=/etc/update-motd.d/50-ansible mode=0755 template: src=motd.sh dest=/etc/update-motd.d/50-ansible mode=0755