Browse Source

Merge pull request #271 from lvillani/wallabag-dont-reinstall-on-upgrade

Merge pull request #271
Alex Payne 10 years ago
parent
commit
7e647cd078
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      roles/readlater/tasks/wallabag.yml

+ 8
- 0
roles/readlater/tasks/wallabag.yml View File

1
+- name: Determine whether wallabag is configured
2
+  stat: path=/var/www/wallabag/inc/poche/config.inc.php
3
+  register: wallabag_config
4
+
1
 - name: Clone wallabag
5
 - name: Clone wallabag
2
   git: repo=https://github.com/wallabag/wallabag.git
6
   git: repo=https://github.com/wallabag/wallabag.git
3
        dest=/var/www/wallabag
7
        dest=/var/www/wallabag
4
        version={{ wallabag_version }}
8
        version={{ wallabag_version }}
5
 
9
 
10
+- name: Remove wallabag 'install' directory if its configuration file is there
11
+  file: name=/var/www/wallabag/install state=absent
12
+  when: wallabag_config.stat.exists == True
13
+
6
 - name: Install wallabag dependencies
14
 - name: Install wallabag dependencies
7
   apt: pkg={{ item }} state=present
15
   apt: pkg={{ item }} state=present
8
   with_items:
16
   with_items:

Loading…
Cancel
Save