From 00c516f3e16d271ede7a60347cd432fb9fad63bf Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 1 Oct 2022 09:49:41 +0300 Subject: sshd: insert Include at beginning of file, not end At end, it'll be in a "match" block, which mean it won't work. Sponsored-by: author --- roles/sshd/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles') diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml index d5ce5c2..9cd2057 100644 --- a/roles/sshd/tasks/main.yml +++ b/roles/sshd/tasks/main.yml @@ -8,6 +8,7 @@ path: /etc/ssh/sshd_config regexp: "Include /etc/ssh/sshd_config.d" line: "Include /etc/ssh/sshd_config.d/*.conf" + insertbefore: BOF - name: "Set SSH host identity" when: sshd_host_key is defined and sshd_host_cert is defined -- cgit v1.2.1