#3810 motd duplicate removed
Merged 5 years ago by pingou. Opened 5 years ago by lenkaseg.
Unknown source motd_duplicate  into  master

@@ -69,6 +69,14 @@

  - name: Install the message of the day

    copy: src=motd dest=/etc/motd

  

+ - name: Remove the motd duplicate

+   pamd:

+     name: sshd

+     type: session

+     control: optional

+     module_path: pam_motd.so

+     state: absent

+ 

  - name: populate bash history

    become_user: "{{ ansible_env.SUDO_USER }}"

    copy: src=bash_history dest=/home/{{ ansible_env.SUDO_USER }}/.bash_history

After ssh to VM the message_of_the_day was duplicated. I added an
ansible task to remove one of the messages. Now there should be only one message after vagrant ssh.

Pull-Request has been merged by pingou

5 years ago