Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyconjp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
roles:
- base
- { tags: u, role: users }
- { tags: w2022, role: web-2022 }
- { tags: w2021, role: web-2021 }
- { tags: w2020, role: web-2020 }
- { tags: w2019, role: web-2019 }
Expand Down
12 changes: 12 additions & 0 deletions roles/nginx/files/etc/nginx/sites-enabled/yyyy.pycon.jp.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
server {
listen 80;
server_name 2022.pycon.jp;

root /var/www/pyconjp/2022.pycon.jp;
index index.html;

location / {
try_files $uri $uri/ =404;
}
}

server {
listen 80;
server_name 2021.pycon.jp;
Expand Down
15 changes: 15 additions & 0 deletions roles/web-2022/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- set_fact:
repository: pyconjp/pycon.jp.2022
year: 2022

- git:
repo: "https://github.com/{{ repository }}.git"
dest: "/var/app/{{ repository }}"
version: main
depth: 1

- file:
state: link
src: "/var/app/{{ repository }}/2022"
dest: "/var/www/pyconjp/2022.pycon.jp"