Thanks Vladamir,

Works great!

Wish there was some good docs out there.

On Thursday, October 10, 2019 at 1:12:01 PM UTC-4, Spiro Mitsialis wrote:
>
> Hi, 
>
> I hope I am using the right terminology here.
> I'm trying to modify some cisco_ios facts.   I know how to use combine to 
> merge the two together.  I'm having problems creating a list/dict that I 
> can use to merge into the original dict 
> The playbook is passed a variable called "port".  What I would like to 
> create a fact as below
>
> set_fact:
>   temp_interface:
>     "{{ port }}":
>         name: "{{ port }}"
>         description: free
>         status: shutdown
>
> This above does not work.  As an example port = GigabitEthernet1/0/10
>
> The result from above is:
>
> TASK [debug] 
> *******************************************************************************************************************************************************************
> ok: [switch-poc-sw8.gw.mcgill.ca] => {
>     "temp_interface": {
>         "{{ port_id }}": {
>             "description": "free",
>             "name": "GigabitEthernet1/0/10",
>             "status": "shutdown"
>
>         }
>     }
> }
>
> How can this be accomplished.
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/22009e21-4da2-42d2-bb5f-c7064900a164%40googlegroups.com.

Reply via email to