commit | 36fc6df8bf897c606a7623d725d505ff50640bf2 | [log] [tgz] |
---|---|---|
author | Filip Pytloun <filip@pytloun.cz> | Mon Nov 06 14:26:46 2017 +0100 |
committer | Filip Pytloun <filip@pytloun.cz> | Mon Nov 06 14:26:46 2017 +0100 |
tree | f4540b19307f8dab4c9f48f6afd5b86255e9ca3b | |
parent | 8b5af7cea14600b7a767823abedf55128f19cf01 [diff] |
Fix motd on debian jessie
diff --git a/linux/system/motd.sls b/linux/system/motd.sls index a7ef8f2..ea8d9ad 100644 --- a/linux/system/motd.sls +++ b/linux/system/motd.sls
@@ -22,6 +22,14 @@ file.directory: - clean: true +{%- if grains.oscodename == "jessie" %} +motd_fix_pam_sshd: + file.replace: + - name: /etc/pam.d/sshd + - pattern: "/run/motd.dynamic" + - repl: "/run/motd" +{%- endif %} + {%- for motd in system.motd %} {%- set motd_index = loop.index %}