1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sshd.git synced 2024-08-16 11:59:49 +02:00

create yamllint

This commit is contained in:
L3D 2021-03-11 00:21:58 +01:00
parent d09093a3fd
commit 3d4540fc62
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 10 additions and 2 deletions

View file

@ -1 +0,0 @@
../..

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.cache

8
.yamllint Normal file
View file

@ -0,0 +1,8 @@
---
extends: default
rules:
# 160 chars should be enough, but don't fail if a line is longer
line-length:
max: 160
level: warning

View file

@ -11,7 +11,7 @@
- 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:
sshd__allowed_users: '{{ sshd__allowed_users + users.keys() | default({}) | sort }}' sshd__allowed_users: '{{ sshd__allowed_users + users.keys() | default({}) | sort }}'
sshd__allowed_groups: '{{ sshd__allowed_groups + users.keys() | default({}) | sort }}' sshd__allowed_groups: '{{ sshd__allowed_groups + users.keys() | default({}) | sort }}'
- name: "try to get {{ sshd__package }} version" - name: "try to get {{ sshd__package }} version"