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-19 17:02:10 +02:00
|
|
|
loop: "{{ query('first_found', templates) }}"
|
2021-05-04 13:39:47 +02:00
|
|
|
vars:
|
|
|
|
templates:
|
2021-05-19 17:02:10 +02:00
|
|
|
- "templates/motd/motd.{{ inventory_hostname }}.j2"
|
|
|
|
- "templates/motd/motd.{{ host_group | default('all') }}.j2"
|
|
|
|
- "templates/motd/motd.default.j2"
|
2018-11-30 15:14:39 +01:00
|
|
|
tags:
|
|
|
|
- motd
|