evolinux-base: deploy custom motd if template are present
This commit is contained in:
parent
6469733d2f
commit
74f25e8183
|
@ -11,6 +11,7 @@ The **patch** part changes incrementally at each release.
|
|||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
* evolinux-base: deploy custom motd if template are present
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -96,6 +96,8 @@
|
|||
include: log2mail.yml
|
||||
when: evolinux_log2mail_include
|
||||
|
||||
- include: motd.yml
|
||||
|
||||
- name: Munin
|
||||
include_role:
|
||||
name: munin
|
||||
|
|
17
evolinux-base/tasks/motd.yml
Normal file
17
evolinux-base/tasks/motd.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Deploy custom motd
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/motd
|
||||
force: True
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
with_first_found:
|
||||
- files:
|
||||
- "motd/motd.{{ inventory_hostname }}.j2"
|
||||
- "motd/motd.{{ host_group }}.j2"
|
||||
- "motd/motd.default.j2"
|
||||
skip: True
|
||||
tags:
|
||||
- motd
|
Loading…
Reference in a new issue