mirror of
https://github.com/luzifer-ansible/update-motd.git
synced 2024-12-23 02:11:16 +00:00
19 lines
391 B
YAML
19 lines
391 B
YAML
|
---
|
||
|
|
||
|
- 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 }}'
|
||
|
|
||
|
...
|