summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-10-01 09:49:41 +0300
committerLars Wirzenius <liw@liw.fi>2022-10-01 09:49:41 +0300
commit00c516f3e16d271ede7a60347cd432fb9fad63bf (patch)
tree45df5494cb2e58b4b0117c819d22309947b416ec
parent240f8c9a1170e99b0f3a093461462437370f7d59 (diff)
downloaddebian-ansible-main.tar.gz
sshd: insert Include at beginning of file, not endHEADmain
At end, it'll be in a "match" block, which mean it won't work. Sponsored-by: author
-rw-r--r--roles/sshd/tasks/main.yml1
1 files changed, 1 insertions, 0 deletions
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