mirror of
https://github.com/roles-ansible/ansible_role_sshd.git
synced 2024-08-16 11:59:49 +02:00
update vars to avoid trouble
This commit is contained in:
parent
8a05d7c6fe
commit
0febef54bd
6 changed files with 12 additions and 2 deletions
|
@ -9,10 +9,10 @@
|
|||
- name: set sshd_service variable
|
||||
block:
|
||||
- name: read os specific variable
|
||||
include_vars: "vars/{{ ansible_distribution | lower }}.yml"
|
||||
include_vars: "vars/sshd_{{ ansible_distribution | lower }}.yml"
|
||||
rescue:
|
||||
- name: read default variable
|
||||
include_vars: vars/default.yml
|
||||
include_vars: vars/sshd_default.yml
|
||||
|
||||
- name: Collect all users and groups allowed to login via ssh
|
||||
set_fact:
|
||||
|
|
10
vars/sshd_default.yml
Normal file
10
vars/sshd_default.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
sshd_service: ssh
|
||||
sshd_key_types_list:
|
||||
- ed25519
|
||||
- rsa
|
||||
- ecdsa
|
||||
- dsa
|
||||
|
||||
sshd_xauth:
|
||||
- xorg-xauth
|
Loading…
Reference in a new issue