k8sdemo
k8sdemo copied to clipboard
Firewalld and its python 2 module are required for this module, version 2.0.11 or newer required (3.0.9 or newer for offline operations)
TASK [etcd : Setup etcd] ************************************************************************************************************************************************************************************* ok: [k8s-master.local]
TASK [config : Setup firewall ports] ************************************************************************************************************************************************************************* failed: [k8s-master.local] (item=2379-2380/tcp) => {"failed": true, "item": "2379-2380/tcp", "msg": "firewalld and its python 2 module are required for this module, version 2.0.11 or newer required (3.0.9 or newer for offline operations) \n No module named firewall.config"}
[centos@k8s-master ~]$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
localhost где ansible-playbook
/k8sdemo/ansible (master) $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
You can try
yum install firewalld
Newer systems use dnf install python3-firewall
for the same.