diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-10-01 09:49:41 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-10-01 09:49:41 +0300 |
commit | 00c516f3e16d271ede7a60347cd432fb9fad63bf (patch) | |
tree | 45df5494cb2e58b4b0117c819d22309947b416ec /roles/sshd/tasks/main.yml | |
parent | 240f8c9a1170e99b0f3a093461462437370f7d59 (diff) | |
download | debian-ansible-00c516f3e16d271ede7a60347cd432fb9fad63bf.tar.gz |
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
Diffstat (limited to 'roles/sshd/tasks/main.yml')
-rw-r--r-- | roles/sshd/tasks/main.yml | 1 |
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 |