michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 61 forks source link

netaddr missing in role's dependencies #147

Open cityofships opened 11 months ago

cityofships commented 11 months ago
TASK [MichaelRigart.interfaces : RedHat | Write configuration files for rhel route configuration] ***************************************************************************************************************************************************************************************************************
task path: /home/stack/ansible-role-interfaces/tasks/ethernet_configuration.yml:26
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller
failed: [localhost] (item={'device': 'veth1.1001', 'bootproto': 'static', 'address': '10.1.0.1', 'netmask': '255.255.255.0', 'rules': ['from 10.1.0.0/24 table myroutetable', 'to 10.1.0.0/24 table myroutetable'], 'route': [{'network': '10.6.0.0', 'netmask': '255.255.255.0', 'gateway': '10.1.0.2'}, {'network': '10.3.0.0', 'netmask': '255.255.255.0', 'gateway': '10.1.0.3', 'table': 'myroutetable'}, {'network': '10.1.0.0', 'netmask': '255.255.255.0', 'table': 'myroutetable'}, {'network': '10.7.0.0', 'netmask': '255.255.255.0', 'gateway': '10.1.0.2', 'options': ['onlink']}]}) => {"ansible_loop_var": "item", "changed": false, "item": {"address": "10.1.0.1", "bootproto": "static", "device": "veth1.1001", "netmask": "255.255.255.0", "route": [{"gateway": "10.1.0.2", "netmask": "255.255.255.0", "network": "10.6.0.0"}, {"gateway": "10.1.0.3", "netmask": "255.255.255.0", "network": "10.3.0.0", "table": "myroutetable"}, {"netmask": "255.255.255.0", "network": "10.1.0.0", "table": "myroutetable"}, {"gateway": "10.1.0.2", "netmask": "255.255.255.0", "network": "10.7.0.0", "options": ["onlink"]}], "rules": ["from 10.1.0.0/24 table myroutetable", "to 10.1.0.0/24 table myroutetable"]}, "msg": "AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller"}
TASK [MichaelRigart.interfaces : Create the network configuration file for bond devices] ************************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Use 'ansible.utils.ipaddr' module instead. This feature will be removed from ansible.netcommon in a release after 2024-01-01. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleFilterError: Failed to import the required Python library (netaddr) on piotr-rh.novalocal's Python /home/rocky/venv/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter
failed: [localhost] (item={'device': 'bond7', 'bootproto': 'static', 'address': '10.4.0.1', 'netmask': '255.255.255.0', 'bond_mode': '802.3ad', 'bond_slaves': ['veth1', 'veth2']}) => {"ansible_loop_var": "item", "changed": false, "item": {"address": "10.4.0.1", "bond_mode": "802.3ad", "bond_slaves": ["veth1", "veth2"], "bootproto": "static", "device": "bond7", "netmask": "255.255.255.0"}, "msg": "AnsibleFilterError: Failed to import the required Python library (netaddr) on piotr-rh.novalocal's Python /home/rocky/venv/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}