ansible-playbooks/ubuntu/roles/turn-off-motd-news/tasks/main.yml

13 lines
300 B
YAML
Raw Normal View History

2018-09-26 00:38:02 +00:00
---
# This role turns off the MOTD news in Ubuntu 18.04
- name: Copy motd-news file
when: ansible_distribution_release == 'bionic' or ansible_distribution_release == 'focal'
2018-09-26 00:38:02 +00:00
copy:
src: motd-news
dest: /etc/default/motd-news
owner: root
group: root
mode: 0644
backup: yes