define acme_config variable
parent
00c6bfd41a
commit
6ddabfda41
|
@ -1,7 +1,22 @@
|
||||||
acme_enabled: yes
|
acme_enabled: yes
|
||||||
|
acme_account_email: acme@example.com
|
||||||
acme_domains:
|
acme_domains:
|
||||||
- "{{ umurmur_domain }}"
|
"{{ umurmur_domain }}":
|
||||||
- "{{ mumble_web_domain }}"
|
hooks:
|
||||||
|
- systemctl restart umurmur
|
||||||
|
"{{ murmur_domain }}":
|
||||||
|
hooks:
|
||||||
|
- systemctl reload mumble-server
|
||||||
|
"{{ mumble_web_domain }}":
|
||||||
|
hooks:
|
||||||
|
- systemctl reload nginx
|
||||||
|
acme_config:
|
||||||
|
account:
|
||||||
|
private_key: "{{ acme_accounts_dir }}/acme_account.key"
|
||||||
|
email: "{{ acme_account_email }}"
|
||||||
|
directory_url: https://acme-v02.api.letsencrypt.org/directory
|
||||||
|
challenge_dir: /var/www/acme/.well-known/acme-challenge
|
||||||
|
domains: "{{ acme_domains }}"
|
||||||
|
|
||||||
mumble_web_enabled: yes
|
mumble_web_enabled: yes
|
||||||
mumble_web_domain: "{{ inventory_hostname }}.local"
|
mumble_web_domain: "{{ inventory_hostname }}.local"
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
- name: Install Self-Signed certificates
|
- name: Install Self-Signed certificates
|
||||||
include_tasks: self_signed.yml
|
include_tasks: self_signed.yml
|
||||||
loop: "{{ acme_domains | unique }}"
|
loop: "{{ acme_domains | list }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: domain_name
|
loop_var: domain_name
|
||||||
when: not acme_enabled
|
when: not acme_enabled
|
||||||
|
|
Loading…
Reference in New Issue