No description
Find a file
2025-10-06 22:25:44 +00:00
defaults update common format 2025-10-06 22:25:44 +00:00
meta initial commit for kroki role 2024-08-20 05:55:38 +00:00
tasks update common format 2025-10-06 22:25:44 +00:00
.gitignore initial commit for kroki role 2024-08-20 05:55:38 +00:00
README.md initial commit for kroki role 2024-08-20 05:55:38 +00:00

ansible-roles-kroki

This role is designed to provide a reverse proxy in conjuction with another role based deployment such as a metrics stack

Task Configuration

- name: Setup kroki
  hosts: somehost
  become: true
  roles:
    - role: firewalld
      firewalld_services:
        - http
        - https
      firewalld_forwards:
        - port: 80
          to: 8080
        - port: 443
          to: 8443
        - port: 443
          to: 8443
          proto: udp
    - role: caddy
      caddy_sites:
        - name: kroki
          url: kroki.somehost.somewhere
          srv: "127.0.0.1:8001"
    - role: kroki

Deployment and Removal

Sometimes you need to manually stop the running containers to get a clean run when re-deploying Services must be stopped as the respecitve user or another means to aquire the correct user scope for systemd

systemctl --user stop container-kroki.service

Deploy

ansible-playbook -i hosts site.yml --tags=firewalld,caddy,kroki --limit=somehost

Remove

ansible-playbook -i hosts site.yml --tags=firewalld,caddy,kroki --extra-vars "container_state=absent firewall_action=remove" --limit=somehost