Install fever plugin for tt-rss

Had to chown the directory afterwards, as git wouldn't play nice with `become_user`
This commit is contained in:
Jake Howard 2020-11-25 13:00:06 +00:00
parent 48762bcfcd
commit b5d676b6fe
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 27 additions and 1 deletions

View file

@ -10,6 +10,7 @@ services:
volumes: volumes:
- "{{ app_data_dir }}/tt-rss/config.php:/config/config.php:ro" - "{{ app_data_dir }}/tt-rss/config.php:/config/config.php:ro"
- "{{ app_data_dir }}/tt-rss/feed-icons:/config/feed-icons" - "{{ app_data_dir }}/tt-rss/feed-icons:/config/feed-icons"
- ./plugins:/config/plugins.local
restart: unless-stopped restart: unless-stopped
labels: labels:
- traefik.enable=true - traefik.enable=true

View file

@ -6,6 +6,15 @@
mode: "{{ docker_compose_directory_mask }}" mode: "{{ docker_compose_directory_mask }}"
become: true become: true
- name: Create tt-rss plugins directory
file:
path: /opt/tt-rss/plugins
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
register: plugins_dir
become: true
- name: Install tt-rss compose file - name: Install tt-rss compose file
template: template:
src: files/tt-rss/docker-compose.yml src: files/tt-rss/docker-compose.yml
@ -25,8 +34,24 @@
register: config_file register: config_file
become: true become: true
- name: Install fever plugin
git:
repo: https://github.com/DigitalDJ/tinytinyrss-fever-plugin
dest: "{{ plugins_dir.path }}/fever"
depth: 1
register: fever_plugin
become: true
- name: Ensure plugins are owned by {{ docker_user.name }}
file:
path: "{{ plugins_dir.path }}"
state: directory
owner: "{{ docker_user.name }}"
recurse: true
become: true
- name: restart tt-rss - name: restart tt-rss
shell: shell:
chdir: /opt/tt-rss chdir: /opt/tt-rss
cmd: "{{ docker_update_command }}" cmd: "{{ docker_update_command }}"
when: compose_file.changed or config_file.changed when: compose_file.changed or config_file.changed or fever_plugin.changed