1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Second attempt at preventing ipv6 route enumeration on EL4 machines

This commit is contained in:
James Tanner 2013-10-08 18:40:15 -04:00
parent 6febc97104
commit b7f229d390

View file

@ -1370,6 +1370,9 @@ class LinuxNetwork(Network):
)
interface = dict(v4 = {}, v6 = {})
for v in 'v4', 'v6':
if v == 'v6' and self.facts['os_family'] == 'RedHat' \
and self.facts['distribution_version'].startswith('4.'):
continue
if v == 'v6' and not socket.has_ipv6:
continue
rc, out, err = module.run_command(command[v])