Skip to content

Commit

Permalink
Use command module
Browse files Browse the repository at this point in the history
  • Loading branch information
KB-perByte committed Dec 5, 2024
1 parent 1622ec5 commit 85f3681
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
---
- name: Populate with simple overridden
cisco.iosxr.iosxr_vrf_interfaces:
state: overridden
config:
- name: GigabitEthernet0/0/0/0
- name: GigabitEthernet0/0/0/1
vrf_name: vrf_A
- name: GigabitEthernet0/0/0/2
vrf_name: vrf_B
- name: Populate interface - 1
cisco.iosxr.iosxr_config:
lines:
- 'vrf vrf_A'
parents: 'interface GigabitEthernet0/0/0/1'
vars:
ansible_connection: ansible.netcommon.network_cli

- name: Populate interface - 2
cisco.iosxr.iosxr_config:
lines:
- 'vrf vrf_B'
parents: 'interface GigabitEthernet0/0/0/2'
vars:
ansible_connection: ansible.netcommon.network_cli

0 comments on commit 85f3681

Please sign in to comment.