ansible/roles/motd/tasks/main.yml

12 lines
454 B
YAML
Raw Normal View History

2021-01-17 00:53:48 -06:00
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
- name: remove default motd items
2022-06-16 23:45:29 -05:00
ansible.builtin.file: state=absent path=/etc/update-motd.d/{{ item }}
2021-01-17 00:53:48 -06:00
loop: "{{ motd_remove + motd_remove_extra }}"
2021-09-07 14:54:54 -05:00
- name: disable motd-news
2022-06-16 23:45:29 -05:00
ansible.builtin.systemd: name="{{ item }}" state=stopped enabled=no
2021-09-07 14:54:54 -05:00
with_items:
- motd-news.timer
2021-01-17 00:53:48 -06:00
- name: template out motd script
2022-06-16 23:45:29 -05:00
ansible.builtin.template: src=motd.sh dest=/etc/update-motd.d/50-ansible mode=0755