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/a6d09ac0-2f43-4004-a330-59abfe3134f2%40googlegroups.com.

Reply via email to