From d81bb9a9275cdb532beb86f8f74484decfb9f86c Mon Sep 17 00:00:00 2001 From: Robert Baker Date: Mon, 18 Feb 2019 03:18:27 -0700 Subject: [PATCH] fix --- apps/_downloaders.yml | 8 -------- apps/deluge.yml | 10 ---------- apps/delugevpn.yml | 26 -------------------------- 3 files changed, 44 deletions(-) diff --git a/apps/_downloaders.yml b/apps/_downloaders.yml index 46aa827..3836511 100644 --- a/apps/_downloaders.yml +++ b/apps/_downloaders.yml @@ -7,11 +7,3 @@ file: 'path={{item}} state=directory mode=0775 owner=1000 group=1000' with_items: - '{{path.stdout}}/incomplete/{{pgrole}}' - when: incomplete.stdout | length == 0 - -- name: Creating incomplete paths - file: 'path={{item}} state=directory mode=0775 owner=1000 group=1000' - with_items: - - '{{incomplete.stdout}}/{{pgrole}}' - when: incomplete.stdout | length > 0 - ignore_errors: yes diff --git a/apps/deluge.yml b/apps/deluge.yml index 4d68ae1..21bf079 100644 --- a/apps/deluge.yml +++ b/apps/deluge.yml @@ -108,7 +108,6 @@ regexp: '"move_completed_path".*' line: '"move_completed_path": "{{path.stdout}}/downloads/{{pgrole}}",' state: present - when: incomplete.stdout | length == 0 - name: Set download location lineinfile: @@ -116,15 +115,6 @@ regexp: '"download_location".*' line: '"download_location": "{{path.stdout}}/incomplete/{{pgrole}}",' state: present - when: incomplete.stdout | length == 0 - - - name: Set download location - lineinfile: - path: '/opt/appdata/{{pgrole}}/core.conf' - regexp: '"download_location".*' - line: '"download_location": "{{incomplete.stdout}}/{{pgrole}}",' - state: present - when: incomplete.stdout | length > 0 - name: Setting torrent file directory lineinfile: diff --git a/apps/delugevpn.yml b/apps/delugevpn.yml index 36b70e2..3941977 100644 --- a/apps/delugevpn.yml +++ b/apps/delugevpn.yml @@ -114,23 +114,6 @@ regexp: '"download_location".*' line: '"download_location": "{{path.stdout}}/downloads/{{pgrole}}",' state: present - when: incomplete.stdout | length == 0 - - - name: Set incomplete path - lineinfile: - path: '/opt/appdata/{{pgrole}}/core.conf' - regexp: '"download_location".*' - line: '"download_location": "{{path.stdout}}/incomplete/{{pgrole}}",' - state: present - when: incomplete.stdout | length > 0 - - - name: Setting complete downloads directory - lineinfile: - path: '/opt/appdata/{{pgrole}}/core.conf' - regexp: '"move_completed_path".*' - line: '"move_completed_path": "{{path.stdout}}/downloads/{{pgrole}}",' - state: present - when: incomplete.stdout | length > 0 - name: Setting torrent file directory lineinfile: @@ -152,15 +135,6 @@ regexp: '"move_completed".*' line: '"move_completed": false,' state: present - when: incomplete.stdout | length == 0 - - - name: Setting move_completed when incomplete is defined - lineinfile: - path: '/opt/appdata/{{pgrole}}/core.conf' - regexp: '"move_completed".*' - line: '"move_completed": true,' - state: present - when: incomplete.stdout | length > 0 - name: Setting extractor folder lineinfile: