diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-04-22 20:38:42 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-04-22 20:38:42 +0200 |
commit | 5557a6add18fa0dbb51658f932d0eff15e69612d (patch) | |
tree | a744ed80c788f0b6b45b83f87c51226fe8554351 | |
parent | 190c3d1bc7590097642b160895493d53f7bc36be (diff) | |
download | playbooks-ansible-5557a6add18fa0dbb51658f932d0eff15e69612d.tar.gz playbooks-ansible-5557a6add18fa0dbb51658f932d0eff15e69612d.tar.xz playbooks-ansible-5557a6add18fa0dbb51658f932d0eff15e69612d.zip |
Improve replay script and fix typo
-rwxr-xr-x | replay | 13 | ||||
-rw-r--r-- | roles/dnsserver/templates/named.conf.j2 | 2 |
2 files changed, 11 insertions, 4 deletions
@@ -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 %} |