disable tls in elastic play, try acme in cloudinit

This commit is contained in:
2026-08-10 17:58:09 +02:00
parent 810fe57db8
commit f2450ab931
2 changed files with 10 additions and 12 deletions
+9 -9
View File
@@ -55,15 +55,15 @@
# TLS (must happen before compose/config templating below, since those # TLS (must happen before compose/config templating below, since those
# templates reference the cert file paths lego produces) # templates reference the cert file paths lego produces)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
- name: Issue/renew TLS certificate and set up renewal automation # - name: Issue/renew TLS certificate and set up renewal automation
ansible.builtin.include_tasks: tls.yml # ansible.builtin.include_tasks: tls.yml
when: elk_tls_enabled # when: elk_tls_enabled
#
- name: Set connection facts used by health checks below # - name: Set connection facts used by health checks below
ansible.builtin.set_fact: # ansible.builtin.set_fact:
elk_scheme: "{{ 'https' if elk_tls_enabled else 'http' }}" # elk_scheme: "{{ 'https' if elk_tls_enabled else 'http' }}"
elk_validate_certs: "{{ not elk_tls_enabled }}" # elk_validate_certs: "{{ not elk_tls_enabled }}"
elk_elasticsearch_client_host: "{{ elk_tls_domain if elk_tls_enabled else elk_elasticsearch_container_name }}" # elk_elasticsearch_client_host: "{{ elk_tls_domain if elk_tls_enabled else elk_elasticsearch_container_name }}"
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Configs # Configs
+1 -3
View File
@@ -135,9 +135,7 @@
- name: Issue the initial certificate (first run only) - name: Issue the initial certificate (first run only)
ansible.builtin.shell: | ansible.builtin.shell: |
set -o pipefail set -o pipefail
set -a export $(cat "{{ elk_cloudflare_token_env_file}}" | xargs) && \
source {{ elk_cloudflare_token_env_file }}
set +a
{{ elk_lego_install_dir }}/lego \ {{ elk_lego_install_dir }}/lego \
--accept-tos \ --accept-tos \
--email "{{ elk_tls_acme_email }}" \ --email "{{ elk_tls_acme_email }}" \