소스 검색

fix app updates

master
부모
커밋
718821bee1
3개의 변경된 파일18개의 추가작업 그리고 3개의 파일을 삭제
  1. +1
    -2
      defaults/main.yml
  2. +0
    -1
      tasks/main.yml
  3. +17
    -0
      tasks/upgrade.yml

+ 1
- 2
defaults/main.yml 파일 보기

@@ -10,8 +10,7 @@ nextcloud_backup_directory: "{{nextcloud_lib_directory}}/backup"

nextcloud_log_directory: /var/log/nextcloud

#nextcloud_version: "{{_nextcloud_latest_version}}"
nextcloud_version: 14.0.3
nextcloud_version: "{{_nextcloud_latest_version}}"

nextcloud_apps:
- contacts


+ 0
- 1
tasks/main.yml 파일 보기

@@ -44,7 +44,6 @@

#- import_tasks: check.yaml


- import_tasks: certificate.yml

- import_tasks: apache2.yml


+ 17
- 0
tasks/upgrade.yml 파일 보기

@@ -8,6 +8,23 @@
owner: www-data
group: www-data

- name: get old default apps
command: ls "{{nextcloud_archive_directory}}/{{nextcloud_version}}/nextcloud/apps"
register: _nextcloud_old_default_apps_ls
changed_when: false

- name: get old actual apps
command: ls "{{nextcloud_backup_directory}}/{{_nextcloud_actual_version}}/nextcloud/apps"
register: _nextcloud_old_actual_apps_ls
changed_when: false

- name: copy old installed apps
synchronize:
src: "{{nextcloud_backup_directory}}/{{_nextcloud_actual_version}}/nextcloud/apps/{{item}}/"
dest: "{{nextcloud_directory}}/apps/{{item}}"
with_items: "{{_nextcloud_old_actual_apps_ls.stdout_lines|difference(_nextcloud_old_default_apps_ls.stdout_lines)}}"
delegate_to: "{{inventory_hostname}}"

- name: upgrade nextcloud
command: php occ upgrade
args:


불러오는 중...
취소
저장