Hi All,
Having major problems with this module. Can't get it to work + the Ansible Docs link appears incomplete on the main site.
ie..things like...no reference to using it. ie. "Provider"
##----ERRORS ----##
TASK [Configure Default Next Hop] *****************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named ipaddress
fatal: [10.99.4.118]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_KSy5yC/ansible_module_ios_static_route.py\", line 105, in <module>\n from ipaddress import ip_network\nImportError: No module named ipaddress\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0}
##-----PLAYBOOK USED-----##
###################################################################################################
Config used-- all Inventory files, group_vars, vault etc. working fine with other - IOS playbooks - ie ios_config, ios_command
###################################################################################################
---
- hosts: labkit
gather_facts: no
connection: local
tasks:
- name: define provider
set_fact:
provider:
host: "{{ inventory_hostname }}"
username: "{{ ansible_user }}"
password: "{{ ansible_ssh_pass }}"
authorize: yes
auth_pass: "{{ ansible_ssh_pass }}"
timeout: 30
#------------------------------------------------------
- name: Configure Test Route
ios_static_route:
provider: "{{ provider }}"
prefix: 8.8.8.0
mask: 255.255.255.0
next_hop: "{{exit_int}}"