Comments (3)
I suppose only your last record is kept.
You must provide a replace:
with a pattern so that ovh_dns
does not replace all records, but only records with the same priority.
Without replace
, ovh_dns
updates the same DOMAIN MX record.
- name: Add MX 1 aspmx.l.google.com.
ovh_dns:
state: present
domain: DOMAIN
name:
type: MX
value: "1 aspmx.l.google.com."
replace: "1 .*"
- name: Add 5 alt1.aspmx.l.google.com.
ovh_dns:
state: present
domain: DOMAIN
name:
type: MX
value: "5 alt1.aspmx.l.google.com."
replace: "5 .*"
From my knowledge, you cannot manage multi-value records. I don't know how to handle easily how to set two MX record for each priority.
from ansible-ovh-dns.
Thanks for the suggestion/solution.
Yep, in fact, when you add a new record to OVH, you receive an ID, this ID should be store somewhere, but it's not the case.
I have tried with terraform and I don't have the issue because there is the state file.
from ansible-ovh-dns.
I suppose only your last record is kept.
You must provide a
replace:
with a pattern so thatovh_dns
does not replace all records, but only records with the same priority.Without
replace
,ovh_dns
updates the same DOMAIN MX record.- name: Add MX 1 aspmx.l.google.com. ovh_dns: state: present domain: DOMAIN name: type: MX value: "1 aspmx.l.google.com." replace: "1 .*" - name: Add 5 alt1.aspmx.l.google.com. ovh_dns: state: present domain: DOMAIN name: type: MX value: "5 alt1.aspmx.l.google.com." replace: "5 .*"
From my knowledge, you cannot manage multi-value records. I don't know how to handle easily how to set two MX record for each priority.
You can have multiple MX records using "append" instead of "present". But in that case, I don't know how to remove previous values ...
from ansible-ovh-dns.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-ovh-dns.