mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-25 20:40:18 +01:00
fix subsystem test for RHEL > 8
This commit is contained in:
parent
75760559a8
commit
742a88e3c6
2 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@
|
||||||
that:
|
that:
|
||||||
- "'Include /etc/ssh/sshd_config.d/*.conf' in config3.content | b64decode"
|
- "'Include /etc/ssh/sshd_config.d/*.conf' in config3.content | b64decode"
|
||||||
- "'AuthorizedKeysFile .ssh/authorized_keys' in config3.content | b64decode"
|
- "'AuthorizedKeysFile .ssh/authorized_keys' in config3.content | b64decode"
|
||||||
- "'Subsystem sftp /usr/libexec/sftp-server' in config3.content | b64decode"
|
- "'Subsystem sftp /usr/libexec/openssh/sftp-server' in config3.content | b64decode"
|
||||||
when:
|
when:
|
||||||
- ansible_facts['os_family'] == 'RedHat'
|
- ansible_facts['os_family'] == 'RedHat'
|
||||||
- ansible_facts['distribution_major_version']|int > 8
|
- ansible_facts['distribution_major_version']|int > 8
|
||||||
|
|
|
@ -188,7 +188,7 @@
|
||||||
that:
|
that:
|
||||||
- "'Include /etc/ssh/sshd_config.d/*.conf' in config3.content | b64decode"
|
- "'Include /etc/ssh/sshd_config.d/*.conf' in config3.content | b64decode"
|
||||||
- "'AuthorizedKeysFile .ssh/authorized_keys' in config3.content | b64decode"
|
- "'AuthorizedKeysFile .ssh/authorized_keys' in config3.content | b64decode"
|
||||||
- "'Subsystem sftp /usr/libexec/sftp-server' in config3.content | b64decode"
|
- "'Subsystem sftp /usr/libexec/openssh/sftp-server' in config3.content | b64decode"
|
||||||
when:
|
when:
|
||||||
- ansible_facts['os_family'] == 'RedHat'
|
- ansible_facts['os_family'] == 'RedHat'
|
||||||
- ansible_facts['distribution_major_version']|int > 8
|
- ansible_facts['distribution_major_version']|int > 8
|
||||||
|
|
Loading…
Reference in a new issue