summaryrefslogtreecommitdiffstats
path: root/roles/dnsserver
diff options
context:
space:
mode:
authorMatthieu Saulnier <casper@casperlefantom.net>2019-09-29 17:52:55 +0200
committerMatthieu Saulnier <casper@casperlefantom.net>2019-09-29 17:52:55 +0200
commit72237c56c5e291507d269087c1ab53199a0cf51f (patch)
tree273f359b50fbb6f8d38438832edb56bf24e0441c /roles/dnsserver
parent10c0a967d7accdbab9b077730b0df0fae756a2d2 (diff)
downloadplaybooks-ansible-72237c56c5e291507d269087c1ab53199a0cf51f.tar.gz
playbooks-ansible-72237c56c5e291507d269087c1ab53199a0cf51f.tar.xz
playbooks-ansible-72237c56c5e291507d269087c1ab53199a0cf51f.zip
Fix records in DNS zone file and fix tags runtime for keys
Diffstat (limited to 'roles/dnsserver')
-rw-r--r--roles/dnsserver/files/jaysfoodventure.com.zone10
-rw-r--r--roles/dnsserver/tasks/main.yml1
2 files changed, 6 insertions, 5 deletions
diff --git a/roles/dnsserver/files/jaysfoodventure.com.zone b/roles/dnsserver/files/jaysfoodventure.com.zone
index 99bb237..45e19f5 100644
--- a/roles/dnsserver/files/jaysfoodventure.com.zone
+++ b/roles/dnsserver/files/jaysfoodventure.com.zone
@@ -1,6 +1,6 @@
$ttl 86400
jaysfoodventure.com. IN SOA nse.jaysfoodventure.com. hostmaster.jaysfoodventure.com. (
-2019092801 ; serial number
+2019092900 ; serial number
86400 ; refresh
3600 ; retry
1209600 ; expire
@@ -11,8 +11,8 @@ jaysfoodventure.com. IN SOA nse.jaysfoodventure.com. hostmaster.jaysfoodventure.
@ IN MX 30 mx1.casperlefantom.net.
@ IN MX 40 mx2.casperlefantom.net.
-@ IN A 0.0.0.0
-@ IN AAAA ::
+@ IN A 178.170.58.2
+@ IN AAAA 2a00:c70:1:178:170:58:2:b50d
@ IN TXT "v=spf1 redirect=casperlefantom.net"
@@ -24,8 +24,8 @@ me IN CNAME jaysfoodventure.com.
static IN CNAME jaysfoodventure.com.
-www IN A 0.0.0.0
-www IN AAAA ::
+www IN A 178.170.58.2
+www IN AAAA 2a00:c70:1:178:170:58:2:b50d
* IN CNAME www
diff --git a/roles/dnsserver/tasks/main.yml b/roles/dnsserver/tasks/main.yml
index 1fdbae9..f851918 100644
--- a/roles/dnsserver/tasks/main.yml
+++ b/roles/dnsserver/tasks/main.yml
@@ -1,5 +1,6 @@
- name: Loading hidden variables
include_vars: keys.yml
+ tags: keys
- name: Installation des paquets
import_tasks: pkgs.yml