aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nginx/handlers
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-03-25 11:49:45 -0700
committerbnewbold <bnewbold@robocracy.org>2016-03-25 11:49:45 -0700
commitbe8701c13800eb84fc4afb118c16738abee55850 (patch)
tree7060e1b8ca09c1c9fd2957ba258a9ad624035d1d /roles/nginx/handlers
downloadinfra-be8701c13800eb84fc4afb118c16738abee55850.tar.gz
infra-be8701c13800eb84fc4afb118c16738abee55850.zip
import basics from NSA's commission repo
Diffstat (limited to 'roles/nginx/handlers')
-rw-r--r--roles/nginx/handlers/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/nginx/handlers/main.yml b/roles/nginx/handlers/main.yml
new file mode 100644
index 0000000..c63e4a3
--- /dev/null
+++ b/roles/nginx/handlers/main.yml
@@ -0,0 +1,7 @@
+---
+- name: test nginx
+ command: nginx -t
+ notify: reload nginx
+
+- name: restart nginx
+ service: name=nginx state=restarted enabled=yes