summaryrefslogtreecommitdiff
path: root/roles/nginx/auth/whawty-sso/base/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-11-13 18:31:17 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-11-13 18:31:17 +0100
commit937d3c3fa6290084346a8aa798166c912736fc81 (patch)
tree93727236b0bb89d0e1b24d32bf2b507677b199d2 /roles/nginx/auth/whawty-sso/base/tasks/main.yml
parentupgraded a number of hosts to bookworm (diff)
add role nginx/auth/whawty-sso
Diffstat (limited to 'roles/nginx/auth/whawty-sso/base/tasks/main.yml')
-rw-r--r--roles/nginx/auth/whawty-sso/base/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/nginx/auth/whawty-sso/base/tasks/main.yml b/roles/nginx/auth/whawty-sso/base/tasks/main.yml
new file mode 100644
index 00000000..a410cfeb
--- /dev/null
+++ b/roles/nginx/auth/whawty-sso/base/tasks/main.yml
@@ -0,0 +1,20 @@
+---
+# TODO: create whawty-nginx-sso user?
+
+- name: install nginx-sso package
+ apt:
+ name: whawty-nginx-sso
+ state: present
+
+- name: generate nginx snippets
+ loop: "{{ whawty_nginx_sso_backends | dict2items }}"
+ loop_control:
+ label: "{{ item.key }}"
+ template:
+ src: nginx.snippet.j2
+ dest: "/etc/nginx/snippets/whawty-sso-{{ item.key }}.conf"
+
+- name: install systemd service unit
+ template:
+ src: whawty-nginx-sso@.service.j2
+ dest: /etc/systemd/system/whawty-nginx-sso@.service