mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-23 17:10:19 +01:00
tests: Use complete connection specification for RHEL7 compatibility
This commit is contained in:
parent
e000df3dd2
commit
e4de9a6afd
2 changed files with 8 additions and 8 deletions
|
@ -35,19 +35,19 @@
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
||||||
- name: List effective configuration using sshd -T for xusers
|
- name: List effective configuration using sshd -T for xusers
|
||||||
command: sshd -T -C user=xusers
|
command: sshd -T -C user=xusers,addr=127.0.0.1,host=example.com
|
||||||
register: xusers_effective
|
register: xusers_effective
|
||||||
|
|
||||||
- name: List effective configuration using sshd -T for bot
|
- name: List effective configuration using sshd -T for bot
|
||||||
command: sshd -T -C user=bot
|
command: sshd -T -C user=bot,addr=127.0.0.1,host=example.com
|
||||||
register: bot_effective
|
register: bot_effective
|
||||||
|
|
||||||
- name: List effective configuration using sshd -T for sftponly
|
- name: List effective configuration using sshd -T for sftponly
|
||||||
command: sshd -T -C user=sftponly
|
command: sshd -T -C user=sftponly,addr=127.0.0.1,host=example.com
|
||||||
register: sftponly_effective
|
register: sftponly_effective
|
||||||
|
|
||||||
- name: List effective configuration using sshd -T for root
|
- name: List effective configuration using sshd -T for root
|
||||||
command: sshd -T -C user=root
|
command: sshd -T -C user=root,addr=127.0.0.1,host=example.com
|
||||||
register: root_effective
|
register: root_effective
|
||||||
|
|
||||||
- name: Print current configuration file
|
- name: Print current configuration file
|
||||||
|
|
|
@ -33,19 +33,19 @@
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
||||||
- name: List effective configuration using sshd -T for xusers
|
- name: List effective configuration using sshd -T for xusers
|
||||||
command: sshd -T -C user=xusers
|
command: sshd -T -C user=xusers,addr=127.0.0.1,host=example.com
|
||||||
register: xusers_effective
|
register: xusers_effective
|
||||||
|
|
||||||
- name: List effective configuration using sshd -T for bot
|
- name: List effective configuration using sshd -T for bot
|
||||||
command: sshd -T -C user=bot
|
command: sshd -T -C user=bot,addr=127.0.0.1,host=example.com
|
||||||
register: bot_effective
|
register: bot_effective
|
||||||
|
|
||||||
- name: List effective configuration using sshd -T for sftponly
|
- name: List effective configuration using sshd -T for sftponly
|
||||||
command: sshd -T -C user=sftponly
|
command: sshd -T -C user=sftponly,addr=127.0.0.1,host=example.com
|
||||||
register: sftponly_effective
|
register: sftponly_effective
|
||||||
|
|
||||||
- name: List effective configuration using sshd -T for root
|
- name: List effective configuration using sshd -T for root
|
||||||
command: sshd -T -C user=root
|
command: sshd -T -C user=root,addr=127.0.0.1,host=example.com
|
||||||
register: root_effective
|
register: root_effective
|
||||||
|
|
||||||
- name: Print current configuration file
|
- name: Print current configuration file
|
||||||
|
|
Loading…
Reference in a new issue