fix(sshd): move login banner to zsh .zprofile

sshd Banner fires on every connection (scp, sftp, non-interactive), the wrong layer for a welcome banner. Move to .zprofile, interactive login shells only.
This commit is contained in:
Clément Désiles
2026-08-25 22:58:03 +02:00
parent 43b510e77f
commit 642a0f8ea4
5 changed files with 15 additions and 12 deletions
+8
View File
@@ -7,6 +7,14 @@
group: "{{ zsh_user }}"
mode: "0600"
- name: Setup .zprofile (login banner)
ansible.builtin.template:
src: zprofile.j2
dest: "{{ zsh_home }}/.zprofile"
owner: "{{ zsh_user }}"
group: "{{ zsh_user }}"
mode: "0600"
- name: Setup zsh base config
ansible.builtin.template:
src: main.zshrc.j2