[ansible-project] Re: Conditions with vlan id

2019-10-24 Thread rajthecomputerguy
This got resolved. thanks team. On Wednesday, October 16, 2019 at 12:12:36 PM UTC+5:30, rajthecomputerguy wrote: > > Hi Team, > > I need to push the line in cisco switch if vlan id =25 or vlan id = > 100-119. what module should I use? > > I parsed *show interfaces status* and got below structur

Re: [ansible-project] Re: Conditions with vlan id

2019-10-25 Thread Dick Visser
On Thu, 24 Oct 2019 at 16:19, rajthecomputerguy wrote: > > This got resolved. thanks team. Thanks, but I don't see the answer in this thread? How was it solved? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

Re: [ansible-project] Re: Conditions with vlan id

2019-11-19 Thread rajthecomputerguy
The below is the solution vlan_id_l2 : ['30', '100'] - name: configure the line based on desired condition (Layer 2) ios_config: lines: - * - * - * parents: "interface {{ item.key }}" when: item.value.data.vlan