aboutsummaryrefslogtreecommitdiff
path: root/gerboweb/deploy/setup_webserver.yml
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2019-09-29 16:28:11 +0200
committerjaseg <code@jaseg.net>2019-09-29 16:28:11 +0200
commitaaacaed22082df3ec338b1bc795ebe3013c450c8 (patch)
treeb8b43ef98a61e407740ac7455f6dd989b2d406cf /gerboweb/deploy/setup_webserver.yml
parent0ada527f0b0e8400253407b78a25d8fbadbe726b (diff)
downloadgerbolyze-aaacaed22082df3ec338b1bc795ebe3013c450c8.tar.gz
gerbolyze-aaacaed22082df3ec338b1bc795ebe3013c450c8.tar.bz2
gerbolyze-aaacaed22082df3ec338b1bc795ebe3013c450c8.zip
deploy: add pogojig
Diffstat (limited to 'gerboweb/deploy/setup_webserver.yml')
-rw-r--r--gerboweb/deploy/setup_webserver.yml25
1 files changed, 15 insertions, 10 deletions
diff --git a/gerboweb/deploy/setup_webserver.yml b/gerboweb/deploy/setup_webserver.yml
index ea821d8..671a699 100644
--- a/gerboweb/deploy/setup_webserver.yml
+++ b/gerboweb/deploy/setup_webserver.yml
@@ -9,13 +9,17 @@
groups: uwsgi
append: yes
-- name: Create blog.jaseg.net content dir
+- name: Create subdomain content dirs
file:
- path: /var/www/blog.jaseg.net
+ path: /var/www/{{item}}
state: directory
owner: nginx
group: nginx
mode: 0550
+ loop:
+ - blog.jaseg.net
+ - tracespace.jaseg.net
+ - openjscad.jaseg.net
- name: Copy uwsgi systemd socket config
copy:
@@ -38,15 +42,16 @@
enabled: yes
state: restarted
-- name: Create letsencrypt certificate for gerbolyze.jaseg.net
- command: certbot --nginx certonly -d gerbolyze.jaseg.net -n --agree-tos --email gerboweb@jaseg.net
+- name: Create subdomain letsencrypt certificates
+ command: certbot --nginx certonly -d {{item}} -n --agree-tos --email {{item}}-letsencrypt@jaseg.net
args:
- creates: /etc/letsencrypt/live/gerbolyze.jaseg.net/fullchain.pem
-
-- name: Create letsencrypt certificate for blog.jaseg.net
- command: certbot --nginx certonly -d blog.jaseg.net -n --agree-tos --email blog@jaseg.net
- args:
- creates: /etc/letsencrypt/live/blog.jaseg.net/fullchain.pem
+ creates: /etc/letsencrypt/live/{{item}}/fullchain.pem
+ loop:
+ - blog.jaseg.net
+ - gerbolyze.jaseg.net
+ - tracespace.jaseg.net
+ - openjscad.jaseg.net
+ - pogojig.jaseg.net
- name: Copy final nginx config
copy: