No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-22 18:48:08 +00:00
defaults update default version, migrate role from v1 common to v2 deployment framework 2026-06-22 18:48:08 +00:00
meta update default version, migrate role from v1 common to v2 deployment framework 2026-06-22 18:48:08 +00:00
tasks update default version, migrate role from v1 common to v2 deployment framework 2026-06-22 18:48:08 +00:00
.gitignore Initial Commit 2026-04-05 05:19:43 +00:00
LICENSE Initial commit 2026-04-05 05:17:32 +00:00
README.md update default version, migrate role from v1 common to v2 deployment framework 2026-06-22 18:48:08 +00:00

ansible-roles-authentik

Task Configuration

Deployment Example

- name: Setup proxy and service
  hosts: somehost
  become: true
  roles:
    - role: authentik
    - role: caddy
      caddy_sites:
        - name: uptime
          host: "{{ portainer_url }}"
          srv: "127.0.0.1:9000"
    - role: firewalld
      firewalld_add:
        - name: public
          services:
            - http
            - https
          forwards:
            - port: 80
              to: 8080
            - port: 443
              to: 8443

Intial Setup

vist your deployment

http://<your server's IP or hostname>:9000/if/flow/initial-setup/
https://<hostname>/if/flow/initial-setup/

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-caddy.service
systemctl --user stop container-authentik.service

Deploy

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

Remove

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