Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carv3l opened this issue Feb 21, 2022 · 0 comments
Open

Comments

@carv3l
Copy link

carv3l commented Feb 21, 2022

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant