From 3d4540fc62cd352caf49460ae60293a7054782c5 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 11 Mar 2021 00:21:58 +0100 Subject: [PATCH] create yamllint --- .cache/roles/do1jlr.sshd | 1 - .gitignore | 1 + .yamllint | 8 ++++++++ tasks/main.yml | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) delete mode 120000 .cache/roles/do1jlr.sshd create mode 100644 .gitignore create mode 100644 .yamllint diff --git a/.cache/roles/do1jlr.sshd b/.cache/roles/do1jlr.sshd deleted file mode 120000 index c25bddb..0000000 --- a/.cache/roles/do1jlr.sshd +++ /dev/null @@ -1 +0,0 @@ -../.. \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16d3c4d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.cache diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..c8bbc93 --- /dev/null +++ b/.yamllint @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index ae79b2a..06f0f5e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,7 +11,7 @@ - name: Collect all users and groups allowed to login via ssh 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 }}' - name: "try to get {{ sshd__package }} version"