initial cleanup server-manager

This commit is contained in:
2020-12-24 14:27:31 +01:00
commit ccd20af081
81 changed files with 2601 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
- name: restart certbot service
service: name=certbot.service state=restarted enabled=yes
- name: restart certbot timer
service: name=certbot.timer state=restarted enabled=yes

View File

@@ -0,0 +1,2 @@
dependencies:
- native-nginx

View File

@@ -0,0 +1,13 @@
- name: install certbot
pacman:
name: [certbot,certbot-nginx]
state: present
notify: restart certbot service
- name: configure certbot.service.tpl
template: src=certbot.service dest=/etc/systemd/system/certbot.service
notify: restart certbot service
- name: configure certbot.timer.tpl
template: src=certbot.timer dest=/etc/systemd/system/certbot.timer
notify: restart certbot timer

View File

@@ -0,0 +1,7 @@
[Unit]
Description=Let's Encrypt renewal
[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos
ExecStartPost=/bin/systemctl reload nginx.service

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Twice daily renewal of Let's Encrypt's certificates
[Timer]
OnCalendar=0/12:00:00
RandomizedDelaySec=1h
Persistent=true
[Install]
WantedBy=timers.target