Compare commits

...

3 Commits

Author SHA1 Message Date
KevinMidboe 88b557a1b6 let it run with elk_tls_enabled 2026-08-10 20:32:16 +02:00
KevinMidboe ca70fe8bf6 hash before updating password 2026-08-10 20:23:15 +02:00
KevinMidboe f2450ab931 disable tls in elastic play, try acme in cloudinit 2026-08-10 17:58:09 +02:00
2 changed files with 7 additions and 4 deletions
+1 -3
View File
@@ -135,9 +135,7 @@
- name: Issue the initial certificate (first run only)
ansible.builtin.shell: |
set -o pipefail
set -a
source {{ elk_cloudflare_token_env_file }}
set +a
export $(cat "{{ elk_cloudflare_token_env_file}}" | xargs) && \
{{ elk_lego_install_dir }}/lego \
--accept-tos \
--email "{{ elk_tls_acme_email }}" \
+6 -1
View File
@@ -45,12 +45,17 @@
retries: 5
delay: 10
- name: Generate bcrypt hash for Umami admin password
ansible.builtin.set_fact:
umami_admin_password_hash: "{{ umami_admin_password | password_hash('bcrypt', rounds=10) }}"
no_log: true
- name: Update Umami admin password via psql inside the db container
community.docker.docker_container_exec:
container: "{{ umami_db_container_name }}"
command: >
psql -U {{ umami_db_user }} -d {{ umami_db_name }} -c
"UPDATE \"user\" SET password = '{{ umami_admin_password }}' WHERE username = 'admin';"
"UPDATE \"user\" SET password = '{{ umami_admin_password_hash }}' WHERE username = 'admin';"
no_log: true
- name: Umami health check result