From c6771d666ebae4b66d3f499bf026ab7fba7ce66e Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Sun, 14 Jan 2024 22:50:16 +0100 Subject: [PATCH] sshd_config: for checking use template-engine --- tasks/sshd_config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/sshd_config.yml b/tasks/sshd_config.yml index 793a831..a369f87 100644 --- a/tasks/sshd_config.yml +++ b/tasks/sshd_config.yml @@ -5,8 +5,8 @@ command: 'sshd -o "include /dev/null"' register: sshd_include_option_check failed_when: 'sshd_include_option_check.rc not in [1,255] or sshd_include_option_check.stderr not in ["Include directive not supported as a command-line option", "command-line: line 0: Bad configuration option: include"]' -- set_facts: - sshd_include_option: 'sshd_include_option_check.stderr == "Include directive not supported as a command-line option"' +- set_fact: + sshd_include_option: '{{sshd_include_option_check.stderr == "Include directive not supported as a command-line option"}}' - when: 'true == sshd_include_option' block: - name: '/etc/ssh/sshd_config.d'