1
0
Fork 0
gopoop.org/freshrss.yaml

50 lines
1.4 KiB
YAML

---
- name: Setup FreshRSS
hosts: all
vars_files:
- vault.yaml
- vars.yaml
tasks:
- name: Create FreshRSS data folder
file:
path: /home/server/freshrss_data
state: directory
- name: Create FreshRSS extensions folder
file:
path: /home/server/freshrss_extensions
state: directory
- name: Run FreshRSS
docker_container:
name: "{{ stack_prefix_name }}freshrss"
recreate: true
restart_policy: unless-stopped
image: freshrss/freshrss:1.21.0
hostname: freshrss.gopoop.org
init: yes
env:
TZ: "America/Kentucky/Louisville"
SERVER_DNS: "freshrss.gopoop.org"
networks:
- name: "{{ stack_prefix_name }}{{ docker_internal_network }}"
# FreshRSS needs to talk to the outside world to fetch stuff.
- name: "{{ stack_prefix_name }}{{ docker_external_network }}"
mounts:
- target: /var/www/FreshRSS/data
source: /home/server/freshrss_data
type: bind
- target: /var/www/FreshRSS/extensions
source: /home/server/freshrss_data
type: bind
state: "{{ container_state }}"
- name: Ensure cron exists to automatically update feeds
ansible.builtin.cron:
name: "check dirs"
minute: "*/10"
job: |-
www-data php -f /usr/share/FreshRSS/app/actualize_script.php > /tmp/FreshRSS.log 2>&1