mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-26 21:10:18 +01:00
Add test for supported OS
This commit is contained in:
parent
62f5919da3
commit
849257c2f4
10 changed files with 13 additions and 2 deletions
|
@ -6,10 +6,13 @@
|
||||||
- "{{ ansible_distribution }}.yml"
|
- "{{ ansible_distribution }}.yml"
|
||||||
- "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
|
- "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
|
||||||
- "{{ ansible_os_family }}.yml"
|
- "{{ ansible_os_family }}.yml"
|
||||||
- default.yml
|
|
||||||
tags:
|
tags:
|
||||||
- sshd
|
- sshd
|
||||||
|
|
||||||
|
- name: OS is supported
|
||||||
|
assert:
|
||||||
|
that: sshd_os_supported == True
|
||||||
|
|
||||||
- name: Installed
|
- name: Installed
|
||||||
action: >
|
action: >
|
||||||
{{ ansible_pkg_mgr }}
|
{{ ansible_pkg_mgr }}
|
||||||
|
@ -37,4 +40,3 @@
|
||||||
state: running
|
state: running
|
||||||
tags:
|
tags:
|
||||||
- sshd
|
- sshd
|
||||||
|
|
||||||
|
|
|
@ -20,3 +20,4 @@ sshd:
|
||||||
- LC_IDENTIFICATION LC_ALL LANGUAGE
|
- LC_IDENTIFICATION LC_ALL LANGUAGE
|
||||||
- XMODIFIERS
|
- XMODIFIERS
|
||||||
Subsystem: "sftp {{ sshd_sftp_server }}"
|
Subsystem: "sftp {{ sshd_sftp_server }}"
|
||||||
|
sshd_os_supported: yes
|
||||||
|
|
|
@ -12,3 +12,4 @@ sshd_defaults:
|
||||||
Subsystem: "sftp {{ sshd_sftp_server }}"
|
Subsystem: "sftp {{ sshd_sftp_server }}"
|
||||||
UsePAM: yes
|
UsePAM: yes
|
||||||
UsePrivilegeSeparation: sandbox
|
UsePrivilegeSeparation: sandbox
|
||||||
|
sshd_os_supported: yes
|
||||||
|
|
|
@ -34,3 +34,4 @@ sshd_defaults:
|
||||||
AcceptEnv: LANG LC_*
|
AcceptEnv: LANG LC_*
|
||||||
Subsystem: "sftp {{ sshd_sftp_server }}"
|
Subsystem: "sftp {{ sshd_sftp_server }}"
|
||||||
UsePAM: yes
|
UsePAM: yes
|
||||||
|
sshd_os_supported: yes
|
||||||
|
|
|
@ -35,3 +35,4 @@ sshd_defaults:
|
||||||
AcceptEnv: LANG LC_*
|
AcceptEnv: LANG LC_*
|
||||||
Subsystem: "sftp {{ sshd_sftp_server }}"
|
Subsystem: "sftp {{ sshd_sftp_server }}"
|
||||||
UsePAM: yes
|
UsePAM: yes
|
||||||
|
sshd_os_supported: yes
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
sshd_config_group: wheel
|
sshd_config_group: wheel
|
||||||
sshd_config_mode: "0644"
|
sshd_config_mode: "0644"
|
||||||
sshd_sftp_server: /usr/libexec/sftp-server
|
sshd_sftp_server: /usr/libexec/sftp-server
|
||||||
|
sshd_os_supported: yes
|
||||||
|
|
|
@ -18,3 +18,4 @@ sshd_defaults:
|
||||||
- XMODIFIERS
|
- XMODIFIERS
|
||||||
X11Forwarding: yes
|
X11Forwarding: yes
|
||||||
Subsystem: "sftp {{ sshd_sftp_server }}"
|
Subsystem: "sftp {{ sshd_sftp_server }}"
|
||||||
|
sshd_os_supported: yes
|
||||||
|
|
|
@ -22,3 +22,4 @@ sshd_defaults:
|
||||||
- LC_IDENTIFICATION LC_ALL LANGUAGE
|
- LC_IDENTIFICATION LC_ALL LANGUAGE
|
||||||
- XMODIFIERS
|
- XMODIFIERS
|
||||||
Subsystem: "sftp {{ sshd_sftp_server }}"
|
Subsystem: "sftp {{ sshd_sftp_server }}"
|
||||||
|
sshd_os_supported: yes
|
||||||
|
|
|
@ -33,3 +33,4 @@ sshd_defaults:
|
||||||
AcceptEnv: LANG LC_*
|
AcceptEnv: LANG LC_*
|
||||||
Subsystem: "sftp {{ sshd_sftp_server }}"
|
Subsystem: "sftp {{ sshd_sftp_server }}"
|
||||||
UsePAM: yes
|
UsePAM: yes
|
||||||
|
sshd_os_supported: yes
|
||||||
|
|
|
@ -35,3 +35,4 @@ sshd_defaults:
|
||||||
AcceptEnv: LANG LC_*
|
AcceptEnv: LANG LC_*
|
||||||
Subsystem: "sftp {{ sshd_sftp_server }}"
|
Subsystem: "sftp {{ sshd_sftp_server }}"
|
||||||
UsePAM: yes
|
UsePAM: yes
|
||||||
|
sshd_os_supported: yes
|
||||||
|
|
Loading…
Reference in a new issue