add dooris role for setup of dooris interaction on the node itself
Some checks failed
/ build (pull_request) Successful in 29s
/ Ansible Lint (push) Failing after 3m15s
/ Ansible Lint (pull_request) Failing after 3m14s

This commit is contained in:
lilly 2026-07-19 16:59:38 +02:00
commit cf7b7ebbed
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g
14 changed files with 157 additions and 50 deletions

View file

@ -0,0 +1,32 @@
argument_specs:
main:
options:
dooris__static_api_token:
description: "A static token that is valid on the servers API and can operate locks"
required: true
type: str
dooris__hostname:
description: "The hostname on which the dooris server is reachable"
required: true
type: str
dooris__openid_client_id:
description: "Client-ID in CCCHH ID for dooris"
required: true
type: str
dooris__openid_client_secret:
description: "Client-Secret in CCCHH ID for dooris"
required: true
type: str
dooris__ccujack_user:
description: "Username for authentication against homematic ccujack"
required: true
type: str
dooris__ccujack_password:
description: "Password for authentication against homematic ccujack"
required: true
type: str

View file

@ -0,0 +1,27 @@
dependencies:
- role: docker_compose
vars:
docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'compose.yaml.j2') }}"
docker_compose__configuration_files: []
- role: certbot
vars:
certbot__new_cert_commands:
- "systemctl restart nginx.service"
certbot__certs:
- commonName: "dooris.ccchh.net"
challengeType: "dns-01-acme-dns"
dns_01_acme_dns:
subdomain: "37caae1f-b77f-4eb1-aa71-dc3f7ed24360"
apiUser: "fd42b696-a394-4e2a-8fcc-d44c9fac5d4e"
apiKey: "{{ secret__acme_dns_api_key_dooris_ccchh_net }}"
- role: nginx
vars:
nginx__version_spec: ""
nginx__deploy_redirect_conf: false
nginx__configurations:
- name: "{{ dooris__hostname }}"
content: "{{ lookup('ansible.builtin.template', 'nginx/site.conf') }}"
- name: http_handler
content: "{{ lookup('ansible.builtin.template', 'nginx/http_handler.conf') }}"