summaryrefslogtreecommitdiff
path: root/roles/web
diff options
context:
space:
mode:
Diffstat (limited to 'roles/web')
-rw-r--r--roles/web/files/sites/ip.ilvokhin.com28
-rw-r--r--roles/web/tasks/main.yml3
-rw-r--r--roles/web/tasks/sites/ip.yml7
3 files changed, 0 insertions, 38 deletions
diff --git a/roles/web/files/sites/ip.ilvokhin.com b/roles/web/files/sites/ip.ilvokhin.com
deleted file mode 100644
index 0555c67..0000000
--- a/roles/web/files/sites/ip.ilvokhin.com
+++ /dev/null
@@ -1,28 +0,0 @@
-server {
- server_name ip.ilvokhin.com www.ip.ilvokhin.com;
-
- location / {
- default_type text/plain;
- return 200 $remote_addr\n;
- }
-
- listen 443 ssl;
- ssl_certificate /etc/letsencrypt/live/ip.ilvokhin.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/ip.ilvokhin.com/privkey.pem;
- include /etc/letsencrypt/options-ssl-nginx.conf;
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
-}
-
-# Do not redirect to https to get a plain output for `curl ip.ilvokhin.com`
-# command.
-server {
- server_name ip.ilvokhin.com www.ip.ilvokhin.com;
-
- location / {
- default_type text/plain;
- return 200 $remote_addr\n;
- }
-
- listen 80;
- listen [::]:80;
-}
diff --git a/roles/web/tasks/main.yml b/roles/web/tasks/main.yml
deleted file mode 100644
index 831d6d6..0000000
--- a/roles/web/tasks/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-- ansible.builtin.import_tasks: roles/web/tasks/logrotate.yml
-- ansible.builtin.import_tasks: roles/web/tasks/nginx.yml
-- ansible.builtin.import_tasks: roles/web/tasks/certbot.yml
diff --git a/roles/web/tasks/sites/ip.yml b/roles/web/tasks/sites/ip.yml
deleted file mode 100644
index a9d2d32..0000000
--- a/roles/web/tasks/sites/ip.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-- name: Configure nginx for ip.ilvokhin.com
- ansible.builtin.copy:
- src: roles/web/files/sites/ip.ilvokhin.com
- dest: /etc/nginx/sites-available
- owner: root
- group: root
- mode: u+rw,g+r,o+r