Compare commits

...

6 Commits

Author SHA1 Message Date
Crest 09cf6f693b Update account.json location.
Closes #30.
2022-07-01 15:25:52 +02:00
Crest 6a81bb2b72 Appease Ansible's autodetection "logic".
Closes #29
2022-07-01 15:16:03 +02:00
Crest 428f4be8da Add --email to acme.sh invocation.
Closes #28.
2022-07-01 13:56:31 +02:00
Crest 8ec0f09538 Define the HAProxy + acme.sh email address as host variable.
Don't clutter less specific name spaces e.g. the all group with this.

Updates #28.
2022-07-01 12:42:22 +02:00
Crest 90e6df0381 Merge branch 'master' of ssh://dev.ccchb.de:2222/ccchb/ansible 2022-07-01 12:27:11 +02:00
Crest 641a48332d Remove leftover crap 2022-01-18 17:47:05 +01:00
6 changed files with 4 additions and 3 deletions

View File

Binary file not shown.

View File

@ -1,2 +1,2 @@
---
ansible_python_interpreter: /usr/local/bin/python
ansible_python_interpreter: /usr/local/bin/python3.8

View File

@ -9,6 +9,7 @@ postfix_my_networks:
haproxy_v4: 176.9.59.104
haproxy_v6: 2a01:4f8:150:926f::2
haproxy_acme_email: root@ccchb.de
haproxy_http:
- host: 'ccchb.de'

View File

@ -216,9 +216,9 @@
meta: flush_handlers
- name: "Register Let's Encrypt account"
command: env sudo -u acme acme.sh --register-account --home /var/db/acme
command: 'env sudo -u acme acme.sh --email {{ haproxy_acme_email }} --server letsencrypt --register-account --home /var/db/acme'
args:
creates: /var/db/acme/ca/acme-v02.api.letsencrypt.org/account.json
creates: /var/db/acme/ca/acme-v02.api.letsencrypt.org/directory/account.json
- name: Use the example deploy hooks
file: