We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug Report
# ansible --version ansible 1.4.5
Running on OS X. Managing Ubuntu 12.04 LTS on AWS.
I can't create a TXT record with the route53 module
Run this playbook:
tasks: - route53: > command=create zone={{ domain }} record={{ domain }} type=TXT value="test" overwrite=true aws_access_key={{ aws_access_key }} aws_secret_key={{ aws_secret_key }}
Things work fine if I try to create a CNAME or A or MX record with the same variables. For example, this works:
- route53: > command=create zone={{ domain }} record=www.{{ domain }} type=CNAME value={{ domain }} aws_access_key={{ aws_access_key }} aws_secret_key={{ aws_secret_key }}
For TXT records I get the following error:
msg: Invalid Resource Record: FATAL problem: InvalidTXTRDATA encountered at test
I've checked and checked and I'm pretty sure that it's not me.
A TXT record is created
I get the following output:
The text was updated successfully, but these errors were encountered:
Sorry, I figured out the problem. TXT records need to be surrounded by double-quotes. This works:
- route53: > command=create zone={{ domain }} record={{ domain }} type=TXT value='"test"' overwrite=true aws_access_key={{ aws_access_key }} aws_secret_key={{ aws_secret_key }}
Sorry, something went wrong.
Anyone else think this is kind of wrong?
@spatten Thanks for posting the fix. Who would have thought...
For others trying to fit 2 values in a TXT record, the format is without brackets or lists, but simply by single quoting all the values once:
value: '"First value", "2nd val"'
No branches or pull requests
Issue Type:
Bug Report
Ansible Version:
Environment:
Running on OS X. Managing Ubuntu 12.04 LTS on AWS.
Summary:
I can't create a TXT record with the route53 module
Steps To Reproduce:
Run this playbook:
Things work fine if I try to create a CNAME or A or MX record with the same variables. For example, this works:
For TXT records I get the following error:
I've checked and checked and I'm pretty sure that it's not me.
Expected Results:
A TXT record is created
Actual Results:
I get the following output:
The text was updated successfully, but these errors were encountered: