Add test for supported OS

This commit is contained in:
Matt Willsher 2015-01-13 17:41:56 +00:00
parent 62f5919da3
commit 849257c2f4
10 changed files with 13 additions and 2 deletions

View file

@ -6,10 +6,13 @@
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}.yml"
- default.yml
tags:
- sshd
- name: OS is supported
assert:
that: sshd_os_supported == True
- name: Installed
action: >
{{ ansible_pkg_mgr }}
@ -37,4 +40,3 @@
state: running
tags:
- sshd

View file

@ -20,3 +20,4 @@ sshd:
- LC_IDENTIFICATION LC_ALL LANGUAGE
- XMODIFIERS
Subsystem: "sftp {{ sshd_sftp_server }}"
sshd_os_supported: yes

View file

@ -12,3 +12,4 @@ sshd_defaults:
Subsystem: "sftp {{ sshd_sftp_server }}"
UsePAM: yes
UsePrivilegeSeparation: sandbox
sshd_os_supported: yes

View file

@ -34,3 +34,4 @@ sshd_defaults:
AcceptEnv: LANG LC_*
Subsystem: "sftp {{ sshd_sftp_server }}"
UsePAM: yes
sshd_os_supported: yes

View file

@ -35,3 +35,4 @@ sshd_defaults:
AcceptEnv: LANG LC_*
Subsystem: "sftp {{ sshd_sftp_server }}"
UsePAM: yes
sshd_os_supported: yes

View file

@ -2,3 +2,4 @@
sshd_config_group: wheel
sshd_config_mode: "0644"
sshd_sftp_server: /usr/libexec/sftp-server
sshd_os_supported: yes

View file

@ -18,3 +18,4 @@ sshd_defaults:
- XMODIFIERS
X11Forwarding: yes
Subsystem: "sftp {{ sshd_sftp_server }}"
sshd_os_supported: yes

View file

@ -22,3 +22,4 @@ sshd_defaults:
- LC_IDENTIFICATION LC_ALL LANGUAGE
- XMODIFIERS
Subsystem: "sftp {{ sshd_sftp_server }}"
sshd_os_supported: yes

View file

@ -33,3 +33,4 @@ sshd_defaults:
AcceptEnv: LANG LC_*
Subsystem: "sftp {{ sshd_sftp_server }}"
UsePAM: yes
sshd_os_supported: yes

View file

@ -35,3 +35,4 @@ sshd_defaults:
AcceptEnv: LANG LC_*
Subsystem: "sftp {{ sshd_sftp_server }}"
UsePAM: yes
sshd_os_supported: yes