From fdb393ba420d3d381bc7892eea79b0ca375e07c7 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 12 Dec 2021 10:45:57 +0100 Subject: [PATCH] updated motd state --- states/motd/init.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/states/motd/init.sls b/states/motd/init.sls index d194887..a198def 100644 --- a/states/motd/init.sls +++ b/states/motd/init.sls @@ -3,6 +3,12 @@ motd-pkg: pkg.latest: - name: figlet +{% if salt["file.is_link"]("/etc/motd") %} +motd-file-link-delete: + file.absent: + - name: /etc/motd +{% endif %} + motd-file: file.managed: - name: /etc/motd