add redirect to nginx

This commit is contained in:
2022-04-17 14:24:18 +02:00
parent 8b295da3a3
commit df477801d4
4 changed files with 25 additions and 3 deletions

View File

@ -42,6 +42,11 @@
cmd: certbot certonly --non-interactive --agree-tos -m tormakristof@tormakristof.eu --nginx -d {{item.domain}}
with_items: "{{ static }}"
- name: Generate certificate for all static sites
command:
cmd: certbot certonly --non-interactive --agree-tos -m tormakristof@tormakristof.eu --nginx -d {{item.domain}}
with_items: "{{ redirect }}"
- name: "Generate certbot script"
ansible.builtin.template:
src: certbot.sh