Skip to content

Ansible: Custom Tag field of a Dictionary. Error: Invalid tag name '}'  #135

@carv3l

Description

@carv3l

I need to write an xml with parameters not properly set on a certain host, and that certain host may or may not have all parameters set correctly.
I stored the key/value pair of each parameter not properly set on a dictionary.

I'm aiming for something like the following:

<host>
    <name>LTM_CV_PRO</name>
    <ip>192.168.1.80</ip> 
    <policyEnforcement>5</policyEnforcement>
    <minimumLength>10</minimumLength>
</host>

So by logic, using your documentation , I've written as follow:

error xml task

My question, is why cant I use a key as a tag ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions