Browse Source

Don't let tasks needlessly re-download same files

Thomas Buck 5 years ago
parent
commit
1b74757068
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      roles/news/tasks/selfoss.yml
  2. 2
    2
      roles/nextcloud/tasks/nextcloud.yml

+ 2
- 2
roles/news/tasks/selfoss.yml View File

45
 - name: Restore old Selfoss data
45
 - name: Restore old Selfoss data
46
   shell: cp -r /root/selfoss/data_bak /var/www/selfoss/data || cp -r /root/selfoss/selfoss-{{ selfoss_version }}/data /var/www/selfoss/data
46
   shell: cp -r /root/selfoss/data_bak /var/www/selfoss/data || cp -r /root/selfoss/selfoss-{{ selfoss_version }}/data /var/www/selfoss/data
47
 
47
 
48
-- name: Delete old Selfoss source
49
-  file: path=/root/selfoss state=absent
48
+- name: Delete old Selfoss data
49
+  file: path=/root/selfoss/data_bak state=absent
50
 
50
 
51
 - name: Set selfoss ownership
51
 - name: Set selfoss ownership
52
   action: file owner=www-data group=www-data path=/var/www/selfoss recurse=yes state=directory
52
   action: file owner=www-data group=www-data path=/var/www/selfoss recurse=yes state=directory

+ 2
- 2
roles/nextcloud/tasks/nextcloud.yml View File

60
 - name: Restore old NextCloud config
60
 - name: Restore old NextCloud config
61
   shell: cp -r /root/nextcloud/config.php.bak /var/www/nextcloud/config/config.php || true
61
   shell: cp -r /root/nextcloud/config.php.bak /var/www/nextcloud/config/config.php || true
62
 
62
 
63
-- name: Delete old NextCloud source
64
-  file: path=/root/nextcloud state=absent
63
+- name: Delete old NextCloud config
64
+  file: path=/root/nextcloud/config.php.bak state=absent
65
 
65
 
66
 - name: Create database user for NextCloud
66
 - name: Create database user for NextCloud
67
   postgresql_user:
67
   postgresql_user:

Loading…
Cancel
Save