Referencing a fact that contains a dot

Here is a fact list that has been returned. I wish to reference the value of net.ifnames, but due to the dot I keep getting undefined variable. What is the proper way to reference this particular fact? I have tried escaping the dot, double-quoting, single quoting, , and so on.

`
“ansible_cmdline”: {
“BOOT_IMAGE”: “/vmlinuz-3.10.0-693.el7.x86_64”,
“biosdevname”: “0”,
“crashkernel”: “auto”,
“net.ifnames”: “0”,
“quiet”: true,
“rhgb”: true,
“ro”: true,
“root”: “UUID=53995842-8f68-475a-9053-10ae5b371124”
},

`

ie, this works because there is no dot in the parameter name

`

  • debug:
    var: ansible_cmdline.biosdevname

RESULT

ok: [rhel7] => {
“ansible_cmdline.biosdevname”: “0”
}

`

Sample failure

`

Hi,

ie, this works because there is no dot in the parameter name
- debug:
    var: ansible_cmdline.biosdevname

RESULT

ok: [rhel7] => {
    "ansible_cmdline.biosdevname": "0"
}

Sample failure
*
ok: [rhel7] => {
    "ansible_cmdline.net.ifnames": "VARIABLE IS NOT DEFINED!"
}

Have you tried:

    debug:
      var: "ansible_cmdline['net.ifnames']"

?

Cheers,
Felix

Seems like I tried everything but that. Thank you, it works now.