mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2026-09-07 13:32:06 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 88b557a1b6 | |||
| ca70fe8bf6 | |||
| f2450ab931 |
@@ -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 }}" \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user