x11forwarding only for debian >11, ipv6

This commit is contained in:
ROTTLER Tamas 2025-04-28 10:56:55 +02:00
parent b6d37c9399
commit 2baa2728c9
2 changed files with 4 additions and 0 deletions

View File

@ -25,5 +25,6 @@
- { a: "net.ipv6.conf.all.disable_ipv6", v: 1 } - { a: "net.ipv6.conf.all.disable_ipv6", v: 1 }
- { a: "net.ipv6.conf.default.disable_ipv6", v: 1 } - { a: "net.ipv6.conf.default.disable_ipv6", v: 1 }
- { a: "net.ipv6.conf.lo.disable_ipv6", v: 1 } - { a: "net.ipv6.conf.lo.disable_ipv6", v: 1 }
when: "'ipv6' not in group_names"
# vim: set tabstop=2 shiftwidth=2 expandtab smarttab: # vim: set tabstop=2 shiftwidth=2 expandtab smarttab:

View File

@ -16,6 +16,9 @@
copy: copy:
content: "X11Forwarding no" content: "X11Forwarding no"
dest: /etc/ssh/sshd_config.d/x11forwarding.conf dest: /etc/ssh/sshd_config.d/x11forwarding.conf
when:
- (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 11) or
(ansible_distribution == "RedHat")
- name: bash profile.d - name: bash profile.d
file: file: