x11forwarding only for debian >11, ipv6
This commit is contained in:
parent
b6d37c9399
commit
2baa2728c9
@ -25,5 +25,6 @@
|
||||
- { a: "net.ipv6.conf.all.disable_ipv6", v: 1 }
|
||||
- { a: "net.ipv6.conf.default.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:
|
||||
|
||||
@ -16,6 +16,9 @@
|
||||
copy:
|
||||
content: "X11Forwarding no"
|
||||
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
|
||||
file:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user