-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio.yml
32 lines (27 loc) · 867 Bytes
/
portfolio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
- name: Install Lighttpd for portfolio
hosts: website
vars_files:
- vars.yml
- private-vars.yml
roles:
- role: tychobrouwer.ssh
- role: tychobrouwer.git
- role: tychobrouwer.lighttpd
lighttpd_git_source: https://github.com/TychoBrouwer/personal-website-elm.git
lighttpd_website_name: portfolio
lighttpd_server_address: https://{{ domain }}
lighttpd_rules:
- |
url.rewrite-once = (
"^/(dist|images|api)/(.*)$" => "/$1/$2",
"^/robots.txt$" => "/robots.txt",
"^/projects(.*)$" => "/index.html"
)
tasks:
- name: Set journald log size
ansible.builtin.lineinfile:
path: /etc/systemd/journald.conf
line: SystemMaxUse=512M
regexp: ^SystemMaxUse=
insertafter: "[Journal]"