You've already forked ansible-role-common
added tasks for dynamic motd
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user