From 6ccb9fc87dc016ea374775279cf5beaeaadf1317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Fri, 16 Feb 2018 12:11:54 +0100 Subject: [PATCH] Replace deprecated "user" attribute by "runas" --- openssh/config.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssh/config.sls b/openssh/config.sls index 96d420c..dd5ac2f 100644 --- a/openssh/config.sls +++ b/openssh/config.sls @@ -67,7 +67,7 @@ ssh_generate_host_{{ keyType }}_key: {%- set keySizePart = "-b {}".format(keySize) if keySize else "" %} - name: "rm {{ keyFile }}*; ssh-keygen -t {{ keyType }} {{ keySizePart }} -N '' -f {{ keyFile }}" - unless: "test -s {{ keyFile }}" - - user: root + - runas: root - require_in: - file: sshd_config - watch_in: