diff --git a/tasks/main.yml b/tasks/main.yml index d7bd165..9f99076 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -129,4 +129,17 @@ dest: ~/.forward regexp: "{{ root_email }}" line: "{{ root_email }}" + create: yes + +- name: Ensure Dynamic MOTD + copy: + src: dynmotd + dest: /usr/local/bin/dynmotd + mode: a+x + +- name: Configure Dynamic MOTD in profile + lineinfile: + dest: /etc/profile.d/motd.sh + regexp: "^/usr/local/bin/dynmotd" + line: "/usr/local/bin/dynmotd" create: yes \ No newline at end of file