Merge pull request #112 from chessclub/multiline-banner-fix

Fixed supporting multiline banner_string defined in the pillar.
This commit is contained in:
Niels Abspoel 2017-08-11 10:30:56 +02:00 committed by GitHub
commit 0eda16c548
1 changed files with 1 additions and 2 deletions

View File

@ -7,8 +7,7 @@ sshd_banner:
file.managed: file.managed:
- name: {{ openssh.banner }} - name: {{ openssh.banner }}
{% if openssh.banner_string is defined %} {% if openssh.banner_string is defined %}
- contents: | - contents: {{ openssh.banner_string | yaml }}
{{ openssh.banner_string }}
{% else %} {% else %}
- source: {{ openssh.banner_src }} - source: {{ openssh.banner_src }}
- template: jinja - template: jinja