From a0c1aa799d94c3ce0c697bfd6777e0233dd77d92 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 13 Nov 2023 21:56:24 +0100 Subject: finalize whawty.nginx-sso roles --- chaos-at-home/ch-testvm-prometheus.yml | 52 ++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'chaos-at-home') diff --git a/chaos-at-home/ch-testvm-prometheus.yml b/chaos-at-home/ch-testvm-prometheus.yml index 9a1191ad..c142100c 100644 --- a/chaos-at-home/ch-testvm-prometheus.yml +++ b/chaos-at-home/ch-testvm-prometheus.yml @@ -7,3 +7,55 @@ - role: core/sshd/base - role: core/zsh - role: core/ntp + +- name: Payload Setup + hosts: ch-testvm-prometheus + roles: + - role: apt-repo/spreadspace + - role: nginx/base + - role: nginx/auth/whawty-sso/base + - role: nginx/auth/whawty-sso/auth + post_tasks: + #### test.chaos-at-home.org (default-server) + - name: create directory for default server + file: + path: /var/www/default + state: directory + + - name: copy chaos-at-home logo file + copy: + src: "{{ global_files_dir }}/chaos-at-home/logo.jpg" + dest: /var/www/default/logo.jpg + + - name: install index.html for default server + copy: + dest: /var/www/default/index.html + content: | + + + No Such Site + + +
+ chaos@home Logo +

You have reached the chaos@home test webserver.

+
+ + + + - name: configure default vhost web.chaos-at-home.org + vars: + nginx_vhost: + default: yes + name: test + template: generic + hostnames: + - test.chaos-at-home.org + extra_directives: | + include snippets/whawty-sso-chaos-at-home.conf; + locations: + '/': + root: /var/www/default + index: index.html + include_role: + name: nginx/vhost -- cgit v1.2.3