infra/ansible/tasks/certbot-installation.yml
shockrah be13e9e71f
Some checks failed
Actions demo / simple-echo (push) Failing after 1s
Moving ansible playbook stuff to its new resting place
2024-08-17 16:24:41 -07:00

20 lines
470 B
YAML

- name: Install required packages
pip:
name:
- certbot
- certbot-nginx
executable: pip3
- name: Register
shell: |
certbot -n register --agree-tos -m dev@shockrah.xyz,temper@temper.tv
touch /etc/letsencrypt/.registered
args:
creates: /etc/letsencrypt/.registered
- name: Setup cron job for renewal every monday at 1 am
cron:
name: certbot-renewal
job: "bash -lc 'certbot -q renew'"
minute: 0
hour: 1
weekday: 1