From 4bfee0c06311ab29f143774bacd999062699e22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 12 Apr 2022 16:34:53 +0200 Subject: [PATCH] better motd clean --- roles/common/tasks/clean-motd.yaml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/roles/common/tasks/clean-motd.yaml b/roles/common/tasks/clean-motd.yaml index 780bbe1..1d6dad2 100644 --- a/roles/common/tasks/clean-motd.yaml +++ b/roles/common/tasks/clean-motd.yaml @@ -1,13 +1,8 @@ --- - name: clean motd file: - state: file - path: /etc/update-motd.d/{{ item }} - owner: root - group: root - mode: "0000" - with_items: - - 10-help-text - - 50-landscape-sysinfo - - 50-motd-news - - 91-release-upgrade \ No newline at end of file + state: touch + owner: tormakris + group: tormakris + mode: "0644" + path: /home/tormakris/.hushlogin \ No newline at end of file