|
@@ -14,17 +14,31 @@ |
|
|
changed_when: false |
|
|
changed_when: false |
|
|
|
|
|
|
|
|
- name: get old actual apps |
|
|
- name: get old actual apps |
|
|
command: ls "{{nextcloud_backup_directory}}/{{_nextcloud_actual_version}}/nextcloud/apps" |
|
|
|
|
|
|
|
|
command: ls |
|
|
|
|
|
"{{nextcloud_backup_directory}}/{{_nextcloud_actual_version}}/nextcloud/apps" |
|
|
register: _nextcloud_old_actual_apps_ls |
|
|
register: _nextcloud_old_actual_apps_ls |
|
|
changed_when: false |
|
|
changed_when: false |
|
|
|
|
|
|
|
|
- name: copy old installed apps |
|
|
- name: copy old installed apps |
|
|
synchronize: |
|
|
synchronize: |
|
|
src: "{{nextcloud_backup_directory}}/{{_nextcloud_actual_version}}/nextcloud/apps/{{item}}/" |
|
|
src: "{{nextcloud_backup_directory}}/{{_nextcloud_actual_version}}/nextcloud/apps/{{item}}/" |
|
|
dest: "{{nextcloud_directory}}/apps/{{item}}" |
|
|
|
|
|
|
|
|
dest: "{{nextcloud_directory}}/custom_apps/{{item}}" |
|
|
with_items: "{{_nextcloud_old_actual_apps_ls.stdout_lines|difference(_nextcloud_old_default_apps_ls.stdout_lines)}}" |
|
|
with_items: "{{_nextcloud_old_actual_apps_ls.stdout_lines|difference(_nextcloud_old_default_apps_ls.stdout_lines)}}" |
|
|
delegate_to: "{{inventory_hostname}}" |
|
|
delegate_to: "{{inventory_hostname}}" |
|
|
|
|
|
|
|
|
|
|
|
- name: get old actual custom apps |
|
|
|
|
|
command: ls |
|
|
|
|
|
"{{nextcloud_backup_directory}}/{{_nextcloud_actual_version}}/nextcloud/custom_apps" |
|
|
|
|
|
register: _nextcloud_old_actual_custom_apps_ls |
|
|
|
|
|
changed_when: false |
|
|
|
|
|
|
|
|
|
|
|
- name: copy old installed custom apps |
|
|
|
|
|
synchronize: |
|
|
|
|
|
src: "{{nextcloud_backup_directory}}/{{_nextcloud_actual_version}}/nextcloud/custom_apps/{{item}}/" |
|
|
|
|
|
dest: "{{nextcloud_directory}}/custom_apps/{{item}}" |
|
|
|
|
|
with_items: "{{_nextcloud_old_actual_custom_apps_ls.stdout_lines|difference(_nextcloud_old_actual_apps_ls.stdout_lines)|difference(_nextcloud_old_default_apps_ls.stdout_lines)}}" |
|
|
|
|
|
delegate_to: "{{inventory_hostname}}" |
|
|
|
|
|
|
|
|
- name: upgrade nextcloud |
|
|
- name: upgrade nextcloud |
|
|
command: php occ upgrade |
|
|
command: php occ upgrade |
|
|
args: |
|
|
args: |
|
|