fix subsystem test for RHEL > 8

This commit is contained in:
Stefan Weber 2023-04-18 13:21:50 +02:00 committed by Jakub Jelen
parent 75760559a8
commit 742a88e3c6
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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