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:
- "{{ app_data_dir }}/tt-rss/config.php:/config/config.php:ro"
- "{{ app_data_dir }}/tt-rss/feed-icons:/config/feed-icons"
- ./plugins:/config/plugins.local
restart: unless-stopped
labels:
- traefik.enable=true

View file

@ -6,6 +6,15 @@
mode: "{{ docker_compose_directory_mask }}"
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
template:
src: files/tt-rss/docker-compose.yml
@ -25,8 +34,24 @@
register: config_file
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
shell:
chdir: /opt/tt-rss
cmd: "{{ docker_update_command }}"
when: compose_file.changed or config_file.changed
when: compose_file.changed or config_file.changed or fever_plugin.changed