14 lines
396 B
YAML
14 lines
396 B
YAML
|
- name: "motd : set motd"
|
||
|
ansible.builtin.copy:
|
||
|
src: "{{ _system_base_motd_file }}"
|
||
|
dest: "/etc/motd"
|
||
|
mode: 0644
|
||
|
when:
|
||
|
motd_dir_path is defined and
|
||
|
_system_base_motd_file != ""
|
||
|
vars:
|
||
|
_file_path:
|
||
|
- ../../../{{ motd_dir_path }}/{{ ansible_hostname }}
|
||
|
_system_base_motd_file: >-
|
||
|
{{ lookup('ansible.builtin.first_found', _file_path, errors='ignore') }}
|