mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
Fixed RSS deployment
This commit is contained in:
@@ -25,10 +25,15 @@
|
||||
- name: 'Including cron job'
|
||||
include_tasks: '/opt/communityapps/apps/_core.yml'
|
||||
|
||||
- name: Checking for existing rss folder
|
||||
stat:
|
||||
path: "/opt/appdata/{{pgrole}}/rss"
|
||||
register: rsscheck
|
||||
|
||||
- name: Checking for existing rss config
|
||||
stat:
|
||||
path: "/opt/appdata/{{pgrole}}/rss/transmission-rss.conf"
|
||||
register: rsscheck
|
||||
register: cfgcheck
|
||||
|
||||
#- name: Checking for existing blocklist
|
||||
# stat:
|
||||
@@ -117,12 +122,18 @@
|
||||
# shell: "curl -s http://john.bitsurge.net/public/biglist.p2p.gz | gunzip > /config/home/biglist.p2p"
|
||||
# when: not blcheck.stat.exists
|
||||
|
||||
- name: 'RSS feed configuration'
|
||||
- name: 'RSS feed configuration - Folder'
|
||||
block:
|
||||
- name: 'Creating configuration'
|
||||
shell: "touch /etc/transmission-rss.conf && chown 1000:1000 /etc/transmission-rss.conf && echo see https://git.io/fhAm2 to configure > /etc/transmission-rss.conf"
|
||||
- name: 'Creating RSS folder'
|
||||
shell: "mkdir /opt/appdata/{{pgrole}}/rss"
|
||||
when: not rsscheck.stat.exists
|
||||
|
||||
- name: 'RSS feed configuration - Config'
|
||||
block:
|
||||
- name: 'Creating configuration file'
|
||||
shell: "touch /opt/appdata/{{pgrole}}/rss/transmission-rss.conf && chown -R 1000:1000 /opt/appdata/{{pgrole}}/rss/ && echo see https://git.io/fhAm2 to configure > /opt/appdata/{{pgrole}}/rss/transmission-rss.conf"
|
||||
when: not cfgcheck.stat.exists
|
||||
|
||||
- name: 'Deploying {{pgrole2}}'
|
||||
docker_container:
|
||||
name: '{{pgrole2}}'
|
||||
|
||||
Reference in New Issue
Block a user