2018-11-30 15:14:39 +01:00
|
|
|
---
|
|
|
|
- name: Deploy custom motd
|
|
|
|
template:
|
|
|
|
src: "{{ item }}"
|
|
|
|
dest: /etc/motd
|
|
|
|
force: True
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0644"
|
2021-05-04 13:39:47 +02:00
|
|
|
loop: "{{ query('first_found', templates, errors='ignore') }}"
|
|
|
|
vars:
|
|
|
|
templates:
|
2018-11-30 15:14:39 +01:00
|
|
|
- "motd/motd.{{ inventory_hostname }}.j2"
|
|
|
|
- "motd/motd.{{ host_group }}.j2"
|
|
|
|
- "motd/motd.default.j2"
|
|
|
|
tags:
|
|
|
|
- motd
|