1
0
Fork 0
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:
L3D 2020-03-27 00:12:00 +01:00 committed by L3D
parent 8a05d7c6fe
commit 0febef54bd
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
6 changed files with 12 additions and 2 deletions

View file

@ -9,10 +9,10 @@
- name: set sshd_service variable - name: set sshd_service variable
block: block:
- name: read os specific variable - name: read os specific variable
include_vars: "vars/{{ ansible_distribution | lower }}.yml" include_vars: "vars/sshd_{{ ansible_distribution | lower }}.yml"
rescue: rescue:
- name: read default variable - 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 - name: Collect all users and groups allowed to login via ssh
set_fact: set_fact:

10
vars/sshd_default.yml Normal file
View file

@ -0,0 +1,10 @@
---
sshd_service: ssh
sshd_key_types_list:
- ed25519
- rsa
- ecdsa
- dsa
sshd_xauth:
- xorg-xauth