summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <robin.oburka@nic.cz> 2016-08-12 14:16:54 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-08-30 20:22:36 +0200
commit75fe5f620d222bf93993bff9c6b9d012adafc42b (patch)
treefdcb11179774d779693ba7cb3a20c31f418a0bed /roles
parentFix role nginx (diff)
downloadansible-roles-75fe5f620d222bf93993bff9c6b9d012adafc42b.tar.xz
nginx: Be prepared to less cool systems
Diffstat (limited to 'roles')
-rw-r--r--roles/nginx/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml
index fe468de..797f6a4 100644
--- a/roles/nginx/tasks/main.yml
+++ b/roles/nginx/tasks/main.yml
@@ -35,6 +35,14 @@
notify:
- restart nginx
+- name: Ensure about snippets directory
+ file:
+ path: /etc/nginx/snippets
+ state: directory
+ owner: root
+ group: root
+ mode: 0755
+
- name: Deploy snippets
template:
src: "snippets/{{ item }}.j2"