ansible/roles/motd/tasks/main.yml

12 lines
454 B
YAML

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
- name: remove default motd items
ansible.builtin.file: state=absent path=/etc/update-motd.d/{{ item }}
loop: "{{ motd_remove + motd_remove_extra }}"
- name: disable motd-news
ansible.builtin.systemd: name="{{ item }}" state=stopped enabled=no
with_items:
- motd-news.timer
- name: template out motd script
ansible.builtin.template: src=motd.sh dest=/etc/update-motd.d/50-ansible mode=0755