Minor improvements, nextcloud maintenance task.

This commit is contained in:
Andreas B. Mundt 2020-02-29 18:26:20 +01:00
parent df0afe3b71
commit a6feab0e38
2 changed files with 13 additions and 3 deletions

1
README
View file

@ -28,6 +28,7 @@ offers ansible playbooks and instructions for the following machines:
- setup of a home cloud server
- dynamic DNS name
- nextcloud
- backup with borg
- …
Contributions like patches, suggestions, pull requests and/or further

View file

@ -234,7 +234,7 @@
warn: False
register: cmd_result
changed_when: cmd_result.stdout is not search('Nothing to do.')
when: allow_download
when: allow_download|bool
## app updates and installations:
- name: update apps
@ -244,7 +244,7 @@
warn: False
register: cmd_result
changed_when: cmd_result.stdout | length > 0
when: allow_download
when: allow_download|bool
- name: install extra apps
command: "sudo -u www-data php ./occ app:install {{ item }}"
@ -255,7 +255,16 @@
register: cmd_result
changed_when: cmd_result.stdout is not search('already installed')
failed_when: cmd_result.stdout is not search('already installed') and cmd_result.rc != 0
when: allow_download
when: allow_download|bool or run_in_installer|default(false)|bool
## nextcloud maintenance
- name: add missing indices
command: "sudo -u www-data php ./occ db:add-missing-indices"
args:
chdir: "{{ nc_dir }}"
warn: False
register: cmd_result
changed_when: cmd_result.stdout is search('table updated successfully')
- name: add default NIC to public zone