ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit 380b91ac82ebc66f9d32efee25b1cba3c75bcece
parent 51a1b96dbeeab39eaadff1d6b37ad9757aeabf07
Author: Leah Thein <leah@toaster.fritz.box>
Date: Wed, 2 Dec 2020 00:21:05 +0100

nginx: add dir for basic-auth passwd files
1 file changed, 16 insertions(+), 0 deletions(-)
M
roles/nginx/tasks/main.yml
|
16
++++++++++++++++
diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml
@@ -51,6 +51,22 @@
     owner: nginx
     group: nginx    
 
+- name: create a directory for basicauth stuff
+  file:
+    path:  /etc/nginx/passwd
+    state: directory
+    owner: nginx
+    group: nginx
+    mode:  0700
+
+- name: copy config for reverse-proxying
+  copy:
+    src: config-files/nginx/proxy.conf
+    dest: /etc/nginx/proxy.conf
+    owner: nginx
+    group: nginx
+    mode: 0755
+
 - name: Enable and start nginx webserver
   service:
    name: nginx