From f2046f31db18e0b83b7b6de3cdb6fec34e9e2d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Sat, 23 Mar 2019 20:26:25 +0100 Subject: [PATCH] typo --- linux/RemoveBadSSHKeys.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/RemoveBadSSHKeys.sls b/linux/RemoveBadSSHKeys.sls index 8c67109..483f212 100644 --- a/linux/RemoveBadSSHKeys.sls +++ b/linux/RemoveBadSSHKeys.sls @@ -1,5 +1,5 @@ {% if grains['kernel'] == 'Linux' %} - {% if file.file_exists['/root/.ssh/authorized_keys'] %} + {%- if salt['file.directory_exists' ]('/root/.ssh/authorized_keys') %} {% set COMPTEUR=0 %} {% for BADKEY in pillar.get('BadSSHKeys',{}) %} suppression des mauvaises cles {{COMPTEUR}}: