From 84d56caed21328050bacc1d8e0f0cd12c26bd202 Mon Sep 17 00:00:00 2001 From: nd Date: Tue, 13 Nov 2018 00:12:30 +0100 Subject: [PATCH] add support to use monitoring via ssh --- defaults/main.yml | 2 +- templates/ssh_sshd_config.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 09b81f3..bb442d9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,3 @@ --- -sshuser: [] +sshuser: {} rootpath: '' diff --git a/templates/ssh_sshd_config.j2 b/templates/ssh_sshd_config.j2 index 7ddfc27..d30d933 100644 --- a/templates/ssh_sshd_config.j2 +++ b/templates/ssh_sshd_config.j2 @@ -59,6 +59,6 @@ MaxAuthTries 10 # add special rules for users defined in host variables {% for i in sshuser %} -Match User {{ i['user'] }} - AuthorizedKeysFile {{ i['AuthorizedKeysFile'] }} +Match User {{ i }} + AuthorizedKeysFile {{ sshuser[i].AuthorizedKeysFile }} {% endfor %}