mirror of
https://github.com/schnidrig/openhab-ansible
synced 2026-01-12 00:48:46 +01:00
upgrade to openhab 3
This commit is contained in:
24
roles/openhab/tasks/letsencrypt.yml
Normal file
24
roles/openhab/tasks/letsencrypt.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
|
||||
- name: ensure packages are installed
|
||||
apt:
|
||||
pkg:
|
||||
- certbot
|
||||
#- python-certbot-nginx
|
||||
- python3-certbot-nginx
|
||||
update_cache: "{{apt_config.update_cache}}"
|
||||
cache_valid_time: "{{apt_config.cache_valid_time}}"
|
||||
|
||||
- name: get certificate
|
||||
shell: 'certbot -n run --nginx --agree-tos --email {{letsencrypt_email}} -d {{fqdn}}'
|
||||
|
||||
|
||||
# - name: cron job
|
||||
# cron:
|
||||
# name: "get new certificate"
|
||||
# minute: "0"
|
||||
# hour: "5"
|
||||
# day: "11"
|
||||
# job: 'certbot -n certonly --nginx --agree-tos --email {{letsencrypt_email}} -d {{fqdn}}'
|
||||
# cron_file: letsencrypt
|
||||
# user: root
|
||||
Reference in New Issue
Block a user