From a104f89f43f2e89e740f546c971983bc5990fe4d Mon Sep 17 00:00:00 2001 From: Lenka Segura Date: Oct 02 2018 15:48:39 +0000 Subject: motd duplicate removed After ssh to VM the message_of_the_day was duplicated. I added an ansible task to remove one of the messages. --- diff --git a/dev/ansible/roles/pagure-dev/tasks/main.yml b/dev/ansible/roles/pagure-dev/tasks/main.yml index 491c8f7..f8100f0 100644 --- a/dev/ansible/roles/pagure-dev/tasks/main.yml +++ b/dev/ansible/roles/pagure-dev/tasks/main.yml @@ -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