Description
Received this error while using this role to install k8s on an ubuntu 20.04 server.
{
"msg": "Failed to reload sysctl: kernel.panic = 10\nnet.ipv6.conf.all.disable_ipv6 = 1\nsysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory\n",
"invocation": {
"module_args": {
"name": "net.bridge.bridge-nf-call-iptables",
"value": "1",
"state": "present",
"reload": true,
"sysctl_set": false,
"ignoreerrors": false,
"sysctl_file": "/etc/sysctl.conf"
}
},
"_ansible_no_log": false,
"changed": false,
"item": "net.bridge.bridge-nf-call-iptables",
"ansible_loop_var": "item",
"_ansible_item_label": "net.bridge.bridge-nf-call-iptables"
}
This is from the server:
"ansible_distribution": "Ubuntu",
"ansible_distribution_file_parsed": true,
"ansible_distribution_file_path": "/etc/os-release",
"ansible_distribution_file_variety": "Debian",
"ansible_distribution_major_version": "20",
"ansible_distribution_release": "focal",
"ansible_distribution_version": "20.04",
Maybe switch from "ansible_distribution" to "ansible_os_family": "Debian"