Просмотр исходного кода

Don't let tasks needlessly re-download same files

Thomas Buck 5 лет назад
Родитель
Сommit
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:

Загрузка…
Отмена
Сохранить