define acme_config variable

master
HgO 2020-12-25 19:52:24 +01:00
parent 00c6bfd41a
commit 6ddabfda41
2 changed files with 18 additions and 3 deletions

View File

@ -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"

View File

@ -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