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:
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
Original file line number Diff line number Diff 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
245245Match 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 -%}
262262Match 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 -%}
274274Match User {{ item.user }}
275- {% for rule in item .rules - %}
275+ {% for rule in item .rules %}
276276 {{ rule | indent(4) }}
277277 {% endfor %}
278278{% endfor %}
You can’t perform that action at this time.
0 commit comments