ansible-edda/playbooks/roles/system/base/tasks/include/motd.yml

11 lines
318 B
YAML
Raw Normal View History

- name: "motd : set motd"
ansible.builtin.copy:
2022-12-18 23:00:28 +01:00
src: "{{ item }}"
dest: "/etc/motd"
mode: 0644
2022-12-18 23:00:28 +01:00
loop: "{{ [lookup('ansible.builtin.first_found', _file_path, skip=true)] | flatten }}"
vars:
2022-12-18 23:00:28 +01:00
_file_path: "{{ system_base_motd_dir }}/{{ ansible_hostname }}"
when:
system_base_motd_dir is defined