update-motd/tasks/main.yml

19 lines
391 B
YAML
Raw Normal View History

2018-10-18 17:33:41 +00:00
---
- name: Disable blacklisted scripts
file:
dest: "/etc/update-motd.d/{{ item }}"
state: absent
with_items: "{{ update_motd_blacklist | default([]) }}"
- name: Install custom update scripts
copy:
content: "{{ item.content }}"
dest: "/etc/update-motd.d/{{ item.name }}"
mode: '0755'
owner: root
group: root
with_items: '{{ update_motd_scripts }}'
...