From 297cfc071e2d3e68dd137139db2c0a2c48611443 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 26 Jun 2019 16:41:45 +0900 Subject: Misc changes. Move up to fedora 30, add gerbolyze, secure download --- setup_webserver.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'setup_webserver.yml') diff --git a/setup_webserver.yml b/setup_webserver.yml index 7dc65c5..ea821d8 100644 --- a/setup_webserver.yml +++ b/setup_webserver.yml @@ -9,6 +9,14 @@ groups: uwsgi append: yes +- name: Create blog.jaseg.net content dir + file: + path: /var/www/blog.jaseg.net + state: directory + owner: nginx + group: nginx + mode: 0550 + - name: Copy uwsgi systemd socket config copy: src: uwsgi-app@.socket @@ -30,11 +38,16 @@ enabled: yes state: restarted -- name: Create letsencrypt certificate +- name: Create letsencrypt certificate for gerbolyze.jaseg.net command: certbot --nginx certonly -d gerbolyze.jaseg.net -n --agree-tos --email gerboweb@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 + - name: Copy final nginx config copy: src: nginx.conf -- cgit