소스 검색

Don't let tasks needlessly re-download same files

Thomas Buck 5 년 전
부모
커밋
1b74757068
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    2
      roles/news/tasks/selfoss.yml
  2. 2
    2
      roles/nextcloud/tasks/nextcloud.yml

+ 2
- 2
roles/news/tasks/selfoss.yml 파일 보기

@@ -45,8 +45,8 @@
45 45
 - name: Restore old Selfoss data
46 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 51
 - name: Set selfoss ownership
52 52
   action: file owner=www-data group=www-data path=/var/www/selfoss recurse=yes state=directory

+ 2
- 2
roles/nextcloud/tasks/nextcloud.yml 파일 보기

@@ -60,8 +60,8 @@
60 60
 - name: Restore old NextCloud config
61 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 66
 - name: Create database user for NextCloud
67 67
   postgresql_user:

Loading…
취소
저장