added tasks for dynamic motd

This commit is contained in:
2016-07-04 12:13:41 +12:00
parent 3f50d0a10f
commit a762d45215

View File

@@ -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