From 886f9e766b15740ff30a193a16273b08e694b0a3 Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 5 Aug 2020 16:33:38 +0200 Subject: [PATCH] add default value for var --- tasks/main.yml | 2 +- templates/sshd_config.j2 | 2 +- vars/main.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 7746be1..dcb6bbc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -35,7 +35,7 @@ - include_tasks: keys.yml -- name: Create sshd configuration (for sshd > 8) +- name: Create sshd configuration become: yes template: src: sshd_config.j2 diff --git a/templates/sshd_config.j2 b/templates/sshd_config.j2 index 9ee5bef..2cc7575 100644 --- a/templates/sshd_config.j2 +++ b/templates/sshd_config.j2 @@ -4,7 +4,7 @@ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. -{% if sshd__version_is_above_eight | bool %} +{% if sshd__version_is_above_eight | default(false) | bool %} Include /etc/ssh/sshd_config.d/*.conf {% endif %} diff --git a/vars/main.yml b/vars/main.yml index e4769be..a70a18e 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ --- -playbook_version_number: 2079 # should be over ninethousand +playbook_version_number: 4096 # should be over ninethousand playbook_version_path: 'role-sshd_chaos-bodensee_github.com.version'