create condition
diff --git a/server/service.sls b/server/service.sls
index d1e3482..7a03b63 100644
--- a/server/service.sls
+++ b/server/service.sls
@@ -125,6 +125,7 @@
 setup_rndc:
   cmd.run:
   - name: /usr/sbin/rndc-confgen -r /dev/urandom -a -c {{ server.rndc_key }}
+  - unless: test -e {{ server.rndc_key }}
   - require:
     - pkg: bind_packages