Hello,
I wanted to remove a sub command [ route_map: RM-EIGRP-2-BGP] in the bgp config under the AF area. I tried to follow an example illustrated in Ansible docs. However, it seems that ALL AF entries are deleted when issuing the following playbook.
Any help is much appreciated.
Thanks, Netmart
- name: Test Ansible ios_command on Cisco IOS XE
hosts: iosxe
vars_files:
- /home/cisco/Ansible/vault_password.yml
vars:
ansible_become_pass: “{{ vault_sudo_password }}”
ansible_python_interpreter: /usr/bin/python3
tasks:
- name: "BGP: No EIGRP redist route map"
cisco.ios.ios_bgp_address_family:
config:
as_number: 65411
address_family:
- afi: ipv4
redistribute:
- eigrp:
as_number: 10
route_map: RM-EIGRP-2-BGP
state: deleted
become: true
register: output