1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-04 08:41:31 +01:00

ansible: add ssh config block

This commit is contained in:
bretello 2024-01-02 15:51:01 +01:00
parent 904f53b0e0
commit 2805f13208
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -39,6 +39,8 @@
- "$HOME/projects" - "$HOME/projects"
- "$HOME/git" - "$HOME/git"
- "$HOME/.config/git" - "$HOME/.config/git"
- "$HOME/.ssh/"
- "$HOME/.ssh/sockets"
- name: antibody # TODO: antibody is available on apt(debian)/brew/pacman - name: antibody # TODO: antibody is available on apt(debian)/brew/pacman
shell: | shell: |
@ -63,6 +65,26 @@
source $DOTFILES/brethil_dotfile.sh source $DOTFILES/brethil_dotfile.sh
create: true create: true
- name: ssh config
blockinfile:
path: $HOME/.ssh/config
marker: "# {mark} brethil dotfiles"
insertbefore: "BOF"
block: |
TCPKeepAlive=yes
ServerAliveCountMax=6
## Uncomment to enable compression for all ssh sessions
#Compression=yes
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%n:%p
ControlPersist yes
Host *
ServerAliveInterval 300
create: true
- name: dotfiles symlink - name: dotfiles symlink
file: file:
src: "{{ DOTFILES }}/{{ item.key }}" src: "{{ DOTFILES }}/{{ item.key }}"