|
|
@ -4,25 +4,25 @@
|
|
|
|
- name: setup
|
|
|
|
- name: setup
|
|
|
|
ios_config:
|
|
|
|
ios_config:
|
|
|
|
lines:
|
|
|
|
lines:
|
|
|
|
- no ip domain lookup source-interface
|
|
|
|
- no ip domain lookup source-interface Loopback888
|
|
|
|
- vrf definition ansible
|
|
|
|
- vrf definition ansible
|
|
|
|
match: none
|
|
|
|
match: none
|
|
|
|
authorize: yes
|
|
|
|
authorize: yes
|
|
|
|
|
|
|
|
|
|
|
|
- name: configure lookup_source
|
|
|
|
- name: configure lookup_source
|
|
|
|
ios_system:
|
|
|
|
ios_system:
|
|
|
|
lookup_source: Loopback10
|
|
|
|
lookup_source: Loopback888
|
|
|
|
authorize: yes
|
|
|
|
authorize: yes
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- result.changed == true
|
|
|
|
- result.changed == true
|
|
|
|
- "'ip domain lookup source-interface Loopback10' in result.commands"
|
|
|
|
- "'ip domain lookup source-interface Loopback888' in result.commands"
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify lookup_source
|
|
|
|
- name: verify lookup_source
|
|
|
|
ios_system:
|
|
|
|
ios_system:
|
|
|
|
lookup_source: Loopback10
|
|
|
|
lookup_source: Loopback888
|
|
|
|
authorize: yes
|
|
|
|
authorize: yes
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
@ -84,7 +84,7 @@
|
|
|
|
- name: teardown
|
|
|
|
- name: teardown
|
|
|
|
ios_config:
|
|
|
|
ios_config:
|
|
|
|
lines:
|
|
|
|
lines:
|
|
|
|
- no ip domain lookup source-interface
|
|
|
|
- no ip domain lookup source-interface Loopback888
|
|
|
|
- no vrf definition ansible
|
|
|
|
- no vrf definition ansible
|
|
|
|
match: none
|
|
|
|
match: none
|
|
|
|
authorize: yes
|
|
|
|
authorize: yes
|
|
|
|