You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
518 B
18 lines
518 B
- hosts: letsencrypt
|
|
become: yes
|
|
vars_files:
|
|
- vars/main.yml
|
|
- local-vars/local.yml
|
|
tasks:
|
|
- name: Install certbot packages
|
|
apt:
|
|
pkg:
|
|
- python3-certbot-nginx
|
|
- name: setup certbot
|
|
command: >
|
|
sudo certbot --nginx --agree-tos -m {{ certbot_admin_email }}
|
|
-d {{ inventory_hostname }} --non-interactive
|
|
--keep --redirect --uir --hsts --staple-ocsp --must-staple
|
|
args:
|
|
creates: /etc/letsencrypt/renewal/{{ inventory_hostname }}.conf
|