This repository was archived by the owner on Dec 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ script:
55
55
- ' docker run --detach --volume="${PWD}":/etc/ansible/roles/ansible-ssh-hardening:ro ${run_opts} rndmh3ro/docker-${distro}-ansible:${version} "${init}" > "${container_id}"'
56
56
57
57
# 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 '
60
60
61
61
# Verify role
62
62
# remove the UseLogin-check, see here for reasons: https://github.com/dev-sec/ansible-ssh-hardening/pull/141
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ Subsystem sftp internal-sftp -l INFO -f LOCAL6
244
244
# These lines must appear at the *end* of sshd_config
245
245
Match Group sftponly
246
246
ForceCommand internal-sftp -l INFO -f LOCAL6
247
- {% if sftp_chroot - %}
247
+ {% if sftp_chroot %}
248
248
ChrootDirectory {{ sftp_chroot_dir }}
249
249
{% endif %}
250
250
AllowTcpForwarding no
@@ -260,7 +260,7 @@ Match Group sftponly
260
260
261
261
{% for item in ssh_server_match_group -%}
262
262
Match Group {{ item.group }}
263
- {% for rule in item .rules - %}
263
+ {% for rule in item .rules %}
264
264
{{ rule | indent(4) }}
265
265
{% endfor %}
266
266
{% endfor %}
@@ -272,7 +272,7 @@ Match Group {{ item.group }}
272
272
273
273
{% for item in ssh_server_match_user -%}
274
274
Match User {{ item.user }}
275
- {% for rule in item .rules - %}
275
+ {% for rule in item .rules %}
276
276
{{ rule | indent(4) }}
277
277
{% endfor %}
278
278
{% endfor %}
You can’t perform that action at this time.
0 commit comments