Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 7b773c0

Browse files
committed
Add comment filter to {{ansible_managed}} string
Multiline {{ansible_managed}} strings do not get properly commented without the comment filter. See http://docs.ansible.com/ansible/playbooks_filters.html#comment-filter
1 parent a122521 commit 7b773c0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/openssh.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ansible_managed}}
1+
# {{ansible_managed|comment}}
22

33
# This is the ssh client system-wide configuration file.
44
# See ssh_config(5) for more information on any settings used. Comments will be added only to clarify why a configuration was chosen.

templates/opensshd.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ansible_managed}}
1+
# {{ansible_managed|comment}}
22

33
# This is the ssh client system-wide configuration file.
44
# See sshd_config(5) for more information on any settings used. Comments will be added only to clarify why a configuration was chosen.

templates/revoked_keys.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ansible_managed}}
1+
# {{ansible_managed|comment}}
22
{% for key in ssh_server_revoked_keys %}
33
{{key}}
44
{% endfor %}

0 commit comments

Comments
 (0)