Fix pre-commit hooks and move directories
roles/ and inventory/ are now in playbooks/ also fixed issues reported by ansible-lint
This commit is contained in:
parent
dc398ddb6e
commit
4104057771
123 changed files with 91 additions and 39 deletions
12
playbooks/roles/umami/tasks/main.yml
Normal file
12
playbooks/roles/umami/tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||||
|
||||
- name: Deploy {{ role_name }}
|
||||
vars:
|
||||
svc: "{{ umami_svc }}"
|
||||
env: "{{ umami_env }}"
|
||||
compose: "{{ umami_compose }}"
|
||||
block:
|
||||
- name: Import tasks to deploy common service
|
||||
ansible.builtin.import_tasks: tasks/deploy-common-service.yml
|
24
playbooks/roles/umami/vars/main.yml
Normal file
24
playbooks/roles/umami/vars/main.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
umami_db_host: "{{ postgres.host }}"
|
||||
umami_db_user: "{{ opentofu.postgresql_data.umami.user }}"
|
||||
umami_db_pass: "{{ opentofu.postgresql_data.umami.pass }}"
|
||||
umami_db_database: "{{ opentofu.postgresql_data.umami.database }}"
|
||||
|
||||
umami_hash_salt: "{{ vault_umami.hash_salt }}"
|
||||
|
||||
umami_docker_image: docker.umami.dev/umami-software/umami:postgresql-latest
|
||||
|
||||
umami_svc:
|
||||
domain: analytics.serguzim.me
|
||||
port: 3000
|
||||
|
||||
umami_env:
|
||||
DATABASE_URL: postgres://{{ umami_db_user }}:{{ umami_db_pass }}@{{ umami_db_host }}/{{ umami_db_database }}
|
||||
DATABASE_TYPE: postgresql
|
||||
FORCE_SSL: 1
|
||||
HASH_SALT: "{{ umami_hash_salt }}"
|
||||
CLIENT_IP_HEADER: X-Analytics-IP
|
||||
|
||||
umami_compose:
|
||||
watchtower: true
|
||||
image: "{{ umami_docker_image }}"
|
Loading…
Add table
Add a link
Reference in a new issue