homelab/roles/freshrss/tasks/main.yml

30 lines
941 B
YAML
Raw Normal View History

2024-11-07 15:50:39 +05:00
---
- name: Create FreshRSS volumes
become: true
community.docker.docker_volume:
name: "{{ item }}"
loop:
- freshrss
- freshrss-extensions
- name: Run FreshRSS container
become: true
community.docker.docker_container:
name: freshrss-1
image: freshrss/freshrss:1.24.3
env:
TZ: "{{ tz }}"
OIDC_ENABLED: "{{ oidc_enabled | string }}"
OIDC_PROVIDER_METADATA_URL: "{{ oidc_provider_metadata_url }}"
OIDC_CLIENT_ID: "{{ oidc_client_id }}"
OIDC_CLIENT_SECRET: "{{ oidc_client_secret }}"
OIDC_CLIENT_CRYPTO_KEY: "{{ oidc_client_crypto_key }}"
OIDC_REMOTE_USER_CLAIM: "{{ oidc_remote_user_claim }}"
OIDC_SCOPES: "{{ oidc_scopes }}"
OIDC_X_FORWARDED_HEADERS: "{{ oidc_x_forwarded_headers }}"
networks:
- name: haproxy
- name: postgresql
volumes:
- freshrss:/var/www/FreshRSS/data
- freshrss-extensions:/var/www/FreshRSS/extensions