mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-23 03:20:19 +01:00
tests: Use valid option in Match blocks in RHEL6
This commit is contained in:
parent
fd144194e6
commit
d46e5eb226
2 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@
|
||||||
sshd_match_2:
|
sshd_match_2:
|
||||||
- Condition: "User root"
|
- Condition: "User root"
|
||||||
PasswordAuthentication: no
|
PasswordAuthentication: no
|
||||||
PermitTunnel: yes
|
AllowTcpForwarding: yes
|
||||||
|
|
||||||
- name: Verify the options are correctly set
|
- name: Verify the options are correctly set
|
||||||
vars:
|
vars:
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
- "'forcecommand internal-sftp' in sftponly_effective.stdout"
|
- "'forcecommand internal-sftp' in sftponly_effective.stdout"
|
||||||
- "'chrootdirectory /var/uploads/' in sftponly_effective.stdout"
|
- "'chrootdirectory /var/uploads/' in sftponly_effective.stdout"
|
||||||
- "'passwordauthentication no' in root_effective.stdout"
|
- "'passwordauthentication no' in root_effective.stdout"
|
||||||
- "'permittunnel yes' in root_effective.stdout"
|
- "'allowtcpforwarding yes' in root_effective.stdout"
|
||||||
|
|
||||||
- name: Check the options are in configuration file
|
- name: Check the options are in configuration file
|
||||||
assert:
|
assert:
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
ChrootDirectory: "/var/uploads/"
|
ChrootDirectory: "/var/uploads/"
|
||||||
- Condition: "User root"
|
- Condition: "User root"
|
||||||
PasswordAuthentication: no
|
PasswordAuthentication: no
|
||||||
PermitTunnel: yes
|
AllowTcpForwarding: yes
|
||||||
|
|
||||||
- name: Verify the options are correctly set
|
- name: Verify the options are correctly set
|
||||||
vars:
|
vars:
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
- "'forcecommand internal-sftp' in sftponly_effective.stdout"
|
- "'forcecommand internal-sftp' in sftponly_effective.stdout"
|
||||||
- "'chrootdirectory /var/uploads/' in sftponly_effective.stdout"
|
- "'chrootdirectory /var/uploads/' in sftponly_effective.stdout"
|
||||||
- "'passwordauthentication no' in root_effective.stdout"
|
- "'passwordauthentication no' in root_effective.stdout"
|
||||||
- "'permittunnel yes' in root_effective.stdout"
|
- "'allowtcpforwarding yes' in root_effective.stdout"
|
||||||
|
|
||||||
- name: Check the options are in configuration file
|
- name: Check the options are in configuration file
|
||||||
assert:
|
assert:
|
||||||
|
|
Loading…
Reference in a new issue