ansible-module-powerdns
ansible-module-powerdns copied to clipboard
handle diff mode for records
Handle diff mode (might be done in some better less hacky way but eh :man_shrugging: it works), and remove a warning
+++ after
@@ -1,3 +1,11 @@
{
- "records": []
+ "name": "b.example.com.",
+ "records": [
+ {
+ "content": "a.example.com.",
+ "disabled": false
+ }
+ ],
+ "ttl": 3600,
+ "type": "CNAME"
}
changed: [a -> localhost] => (item=a.example.com.)
--- before
+++ after
@@ -2,7 +2,7 @@
"name": "c.example.com.",
"records": [
{
- "content": "c.",
+ "content": "d.example.com..",
"disabled": false
}
],
changed: [a-> localhost] => (item=a.example.com.)
Signed-off-by: Cyril Duval [email protected]