From b72e4eafb4810d9e2d47c83dffa529cc629499ad Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 22 Feb 2021 13:11:22 +0100 Subject: [PATCH] remove no warranty message --- roles/mgrote.motd/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/mgrote.motd/tasks/main.yml b/roles/mgrote.motd/tasks/main.yml index f6ccb13a..c64fde52 100644 --- a/roles/mgrote.motd/tasks/main.yml +++ b/roles/mgrote.motd/tasks/main.yml @@ -42,6 +42,12 @@ backrefs: yes notify: restart_sshd + - name: delete "no warranty" - Message + become: yes + ansible.builtin.file: + path: /etc/motd + state: absent + - name: setup new motd become: yes ansible.builtin.template: