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

Commit

Permalink
Merge pull request #222 from dev-sec/fix_221
Browse files Browse the repository at this point in the history
fix indentation for matches
  • Loading branch information
rndmh3ro authored May 7, 2019
2 parents 1570b05 + c592fd6 commit 7457337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ script:
- 'docker run --detach --volume="${PWD}":/etc/ansible/roles/ansible-ssh-hardening:ro ${run_opts} rndmh3ro/docker-${distro}-ansible:${version} "${init}" > "${container_id}"'

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

# Verify role
# remove the UseLogin-check, see here for reasons: https://github.com/dev-sec/ansible-ssh-hardening/pull/141
Expand Down
6 changes: 3 additions & 3 deletions templates/opensshd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Subsystem sftp internal-sftp -l INFO -f LOCAL6
# These lines must appear at the *end* of sshd_config
Match Group sftponly
ForceCommand internal-sftp -l INFO -f LOCAL6
{% if sftp_chroot -%}
{% if sftp_chroot %}
ChrootDirectory {{ sftp_chroot_dir }}
{% endif %}
AllowTcpForwarding no
Expand All @@ -260,7 +260,7 @@ Match Group sftponly

{% for item in ssh_server_match_group -%}
Match Group {{ item.group }}
{% for rule in item.rules -%}
{% for rule in item.rules %}
{{ rule | indent(4) }}
{% endfor %}
{% endfor %}
Expand All @@ -272,7 +272,7 @@ Match Group {{ item.group }}

{% for item in ssh_server_match_user -%}
Match User {{ item.user }}
{% for rule in item.rules -%}
{% for rule in item.rules %}
{{ rule | indent(4) }}
{% endfor %}
{% endfor %}
Expand Down

0 comments on commit 7457337

Please sign in to comment.