Re: [ansible-project] Adding a Fact to a dict for Cisco Interf.

2019-08-27 Thread Vladimir Botka
> - set_fact: > cisco_ios: "{{ cisco_ios.interfaces|combine(interfaces) }}" Errata: - set_fact: cisco_ios: "{{ cisco_ios|combine({'interfaces': interfaces}) }}" -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] Adding a Fact to a dict for Cisco Interf.

2019-08-27 Thread Vladimir Botka
On Tue, 27 Aug 2019 07:44:24 -0700 (PDT) Spiro Mitsialis wrote: > I have the following that is not working. > > vars: > cmdb: xkjsdflkjsjdl4d > cisco_ios: >interfaces: > gigabit1/0/1: > name: Gigabit1/0/1 > status: up > gigabit1/0/2:

[ansible-project] Adding a Fact to a dict for Cisco Interf.

2019-08-27 Thread Spiro Mitsialis
I have the following that is not working. vars: cmdb: xkjsdflkjsjdl4d cisco_ios: interfaces: gigabit1/0/1: name: Gigabit1/0/1 status: up gigabit1/0/2: name: Gigabit1/0/2 status: down tasks: - name: Test in