file.directory: | file.directory: | ||||
- clean: true | - 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 %} | {%- for motd in system.motd %} | ||||
{%- set motd_index = loop.index %} | {%- set motd_index = loop.index %} | ||||