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

Commit 7457337

Browse files
authored
Merge pull request #222 from dev-sec/fix_221
fix indentation for matches
2 parents 1570b05 + c592fd6 commit 7457337

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ script:
5555
- 'docker run --detach --volume="${PWD}":/etc/ansible/roles/ansible-ssh-hardening:ro ${run_opts} rndmh3ro/docker-${distro}-ansible:${version} "${init}" > "${container_id}"'
5656

5757
# Test role.
58-
- 'docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/roles/ansible-ssh-hardening/tests/default_custom.yml'
59-
- 'docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/roles/ansible-ssh-hardening/tests/default.yml'
58+
- 'docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/roles/ansible-ssh-hardening/tests/default_custom.yml --diff'
59+
- 'docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/roles/ansible-ssh-hardening/tests/default.yml --diff'
6060

6161
# Verify role
6262
# remove the UseLogin-check, see here for reasons: https://github.com/dev-sec/ansible-ssh-hardening/pull/141

templates/opensshd.conf.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Subsystem sftp internal-sftp -l INFO -f LOCAL6
244244
# These lines must appear at the *end* of sshd_config
245245
Match Group sftponly
246246
ForceCommand internal-sftp -l INFO -f LOCAL6
247-
{% if sftp_chroot -%}
247+
{% if sftp_chroot %}
248248
ChrootDirectory {{ sftp_chroot_dir }}
249249
{% endif %}
250250
AllowTcpForwarding no
@@ -260,7 +260,7 @@ Match Group sftponly
260260

261261
{% for item in ssh_server_match_group -%}
262262
Match Group {{ item.group }}
263-
{% for rule in item.rules -%}
263+
{% for rule in item.rules %}
264264
{{ rule | indent(4) }}
265265
{% endfor %}
266266
{% endfor %}
@@ -272,7 +272,7 @@ Match Group {{ item.group }}
272272

273273
{% for item in ssh_server_match_user -%}
274274
Match User {{ item.user }}
275-
{% for rule in item.rules -%}
275+
{% for rule in item.rules %}
276276
{{ rule | indent(4) }}
277277
{% endfor %}
278278
{% endfor %}

0 commit comments

Comments
 (0)