: improve nextcloud installation
All checks were successful
ansible-lint / lint-everything (push) Successful in 3s

This commit is contained in:
VC
2025-03-11 11:12:56 +01:00
parent c4b1ff1e48
commit 0b7fc894da
6 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
---
- name: Install nextcloud cron
ansible.builtin.cron:
user: www-data
name: nextcloud cron
minute: "*/15"
job: "/usr/bin/php -f {{ nextcloud_app_home }}/cron.php > /dev/null"

View File

@@ -10,5 +10,12 @@
ansible.builtin.include_tasks: nextcloud_modules.yml
loop: "{{ nextcloud_modules }}"
- name: Disable nextcloud modules
ansible.builtin.include_tasks: nextcloud_disabled_modules.yml
loop: "{{ nextcloud_disabled_modules }}"
- name: Install nextcloud cron
ansible.builtin.include_tasks: cron.yml
- name: Check nextcloud version
ansible.builtin.include_tasks: check.yml

View File

@@ -0,0 +1,9 @@
---
- name: "Disable {{ item.name }} module"
become: true
become_user: www-data
ansible.builtin.command:
cmd: "php occ app:disable {{ item.name }}"
chdir: "{{ nextcloud_app_home }}"
changed_when: false

View File

@@ -7,4 +7,3 @@
cmd: "php occ app:install {{ item.force | default(false) | ternary('--force', '') }} {{ item.name }}"
chdir: "{{ nextcloud_app_home }}"
creates: "{{ nextcloud_app_home }}/apps/{{ item.name }}"
changed_when: false

View File

@@ -52,6 +52,7 @@ $CONFIG = array (
),
),
'maintenance' => false,
'maintenance_window_start' => 1,
'passwordsalt' => '{{ nextcloud_passwordsalt }}',
'app_install_overwrite' =>
array (

View File

@@ -22,3 +22,6 @@ nextcloud_modules:
- name: tasks
- name: user_external
force: true
nextcloud_disabled_modules:
- name: photos