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