mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Solved certbot bug
This commit is contained in:
parent
fe0ee86319
commit
f180c14e06
@ -2,12 +2,15 @@
|
|||||||
- name: "include task receive certbot certificate"
|
- name: "include task receive certbot certificate"
|
||||||
include_tasks: recieve-certbot-certificate.yml
|
include_tasks: recieve-certbot-certificate.yml
|
||||||
vars:
|
vars:
|
||||||
domain: "{{ domain }}"
|
domain: "{{item.source}}"
|
||||||
|
loop: "{{domain_mappings}}"
|
||||||
|
|
||||||
- name: configure nginx redirect configurations
|
- name: configure nginx redirect configurations
|
||||||
vars:
|
vars:
|
||||||
domain: "{{item.source}}"
|
domain: "{{item.source}}"
|
||||||
target_domain: "{{item.target}}"
|
target_domain: "{{item.target}}"
|
||||||
template: src=redirect.domain.nginx.conf.j2 dest={{nginx_servers_directory}}{{ domain }}.conf
|
template:
|
||||||
|
src: redirect.domain.nginx.conf.j2
|
||||||
|
dest: "{{nginx_servers_directory}}{{ domain }}.conf"
|
||||||
loop: "{{domain_mappings}}"
|
loop: "{{domain_mappings}}"
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- name: recieve certbot certificate for {{ domain }}
|
- name: "recieve certbot certificate for {{ domain }}"
|
||||||
command: >-
|
command: >-
|
||||||
certbot certonly --agree-tos --email {{ administrator_email }}
|
certbot certonly --agree-tos --email {{ administrator_email }}
|
||||||
--non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ domain }}
|
--non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ domain }}
|
||||||
|
Loading…
Reference in New Issue
Block a user