diff --git a/roles/config-base-debian-os/tasks/main.yaml b/roles/config-base-debian-os/tasks/main.yaml index 4c5abf8..95ad16c 100644 --- a/roles/config-base-debian-os/tasks/main.yaml +++ b/roles/config-base-debian-os/tasks/main.yaml @@ -302,5 +302,11 @@ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Add message to MOTD - name: add motd message - shell: echo "verdnatura" | figlet >> /etc/motd -#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \ No newline at end of file + copy: + src: mymotd.sh + dest: "{{ path_motd_script }}" + mode: '0644' + owner: root + group: root + backup: yes +#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/roles/config-base-debian-os/vars/main.yaml b/roles/config-base-debian-os/vars/main.yaml index 90cf3bd..b490cdd 100644 --- a/roles/config-base-debian-os/vars/main.yaml +++ b/roles/config-base-debian-os/vars/main.yaml @@ -12,4 +12,4 @@ bindpw_password: !vault | 3133313233353730620a343536316266393637623563313563613332646630643632366439343764 30383935303161646339393361393130613266663337373364626635646430326465 path_vimrclocal: /etc/vim/vimrc.local -path_motd: /etc/motd \ No newline at end of file +path_motd_script: /etc/profile.d/mymotd.sh