homelab/roles/freshrss/tasks/main.yml

33 lines
1.1 KiB
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 }}"
CRON_MIN: "{{ cron_min }}"
2024-11-07 15:50:39 +05:00
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_SESSION_INACTIVITY_TIMEOUT: "{{ oidc_session_inactivity_timeout | string }}"
OIDC_SESSION_MAX_DURATION: "{{ oidc_session_max_duration | string }}"
2024-11-07 15:50:39 +05:00
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