summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2018-04-22 20:38:42 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2018-04-22 20:38:42 +0200
commit5557a6add18fa0dbb51658f932d0eff15e69612d (patch)
treea744ed80c788f0b6b45b83f87c51226fe8554351
parent190c3d1bc7590097642b160895493d53f7bc36be (diff)
downloadplaybooks-ansible-5557a6add18fa0dbb51658f932d0eff15e69612d.tar.gz
playbooks-ansible-5557a6add18fa0dbb51658f932d0eff15e69612d.tar.xz
playbooks-ansible-5557a6add18fa0dbb51658f932d0eff15e69612d.zip
Improve replay script and fix typo
-rwxr-xr-xreplay13
-rw-r--r--roles/dnsserver/templates/named.conf.j22
2 files changed, 11 insertions, 4 deletions
diff --git a/replay b/replay
index 617c054..92070cf 100755
--- a/replay
+++ b/replay
@@ -29,7 +29,7 @@ while [[ $# -gt 0 ]]
do
case "$1" in
-d|--debug)
- COUNTLIMIT=1
+ COUNTLIMIT=2
shift
;;
*)
@@ -44,7 +44,7 @@ done
REPLAY=true
-COUNT=0
+COUNT=1
pushd $WORKDIR >/dev/null
@@ -59,7 +59,14 @@ then
fi
# need cleanup before starting loop
-rm -f $SOURCES/site.retry
+if [[ -f $SOURCES/site.retry ]]
+then
+ rm -f $SOURCES/site.retry
+ echo -e "$ERROR retry file found, cleaning up..."
+else
+ echo -e "$OK retry file not found, starting loop..."
+fi
+
while [[ $REPLAY == "true" ]] && [[ $COUNT -lt $COUNTLIMIT ]]
do
diff --git a/roles/dnsserver/templates/named.conf.j2 b/roles/dnsserver/templates/named.conf.j2
index daeffe3..77f9009 100644
--- a/roles/dnsserver/templates/named.conf.j2
+++ b/roles/dnsserver/templates/named.conf.j2
@@ -15,7 +15,7 @@ acl "whitelist-recursion" {
{% if is_dnsmaster is defined %}
acl "transferlist" {
{% for item in slavelist %}
- {{ '{{' }} {{ item }} {{ '}}' }};
+ {{ item }};
{% endfor %}
};
{% endif %}