- name: Install required packages for adding GPG keys apt: name: - debian-keyring - debian-archive-keyring - apt-transport-https state: present update_cache: true - name: Add GPG keys apt_key: url: "{{ item }}" state: present with_items: - https://dl.cloudsmith.io/public/caddy/stable/gpg.key - https://repo.jellyfin.org/debian/jellyfin_team.gpg.key - name: Add Caddy repositories apt_repository: repo: "{{ item }} https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main" filename: 'caddy-stable' state: present with_items: - deb - deb-src - name: Add Jellyfin repository apt_repository: repo: "deb https://repo.jellyfin.org/debian bullseye main" filename: 'jellyfin' state: present - name: Install packages apt: name: - vim - caddy - jellyfin - ufw - samba state: present update_cache: true