mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2026-09-07 13:32:06 +00:00
Compare commits
3 Commits
810fe57db8
...
88b557a1b6
| Author | SHA1 | Date | |
|---|---|---|---|
| 88b557a1b6 | |||
| ca70fe8bf6 | |||
| f2450ab931 |
@@ -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 }}" \
|
||||||
|
|||||||
@@ -45,12 +45,17 @@
|
|||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
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
|
- name: Update Umami admin password via psql inside the db container
|
||||||
community.docker.docker_container_exec:
|
community.docker.docker_container_exec:
|
||||||
container: "{{ umami_db_container_name }}"
|
container: "{{ umami_db_container_name }}"
|
||||||
command: >
|
command: >
|
||||||
psql -U {{ umami_db_user }} -d {{ umami_db_name }} -c
|
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
|
no_log: true
|
||||||
|
|
||||||
- name: Umami health check result
|
- name: Umami health check result
|
||||||
|
|||||||
Reference in New Issue
Block a user