Skip to content

Commit 4d56a9a

Browse files
authored
Merge pull request #416 from tograss/main
Add variable nextcloud_install_php
2 parents 43f743f + 2e2c704 commit 4d56a9a

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

roles/install_nextcloud/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,15 @@ Before the installation and configuration will start, the local 'apt' packages-c
461461
upgrade_packages_first: true
462462
```
463463
**_WARNING: Current Nextcloud requires php v8.0 or later. This role is tested and installs by default the recommended version through third party repos. See more details below._**
464+
To skip required php setup set to false:
465+
```yaml
466+
nextcloud_install_php: true
467+
```
468+
You will need to manage required php modules and configuration by your self.
464469

465470
Nextcloud's [supported version of php](https://docs.nextcloud.com/server/25/admin_manual/installation/system_requirements.html#server) can often not be available in your distro official repository. `php_install_external_repos` will use [geerlingguy.php-versions](https://github.com/geerlingguy/ansible-role-php-versions) role to add the appropriate third party for your distribution version.
466471

467-
If you do not want to install the third party repository, you can set the following variable to false, but you'll have to install php on your own before running this role.
472+
If you do not want to install the third party repository, you can set the following variable to false, but you have to ensure a suitable version of php is installable on your system before running this role.
468473

469474
```yaml
470475
php_install_external_repos: true

roles/install_nextcloud/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ nextcloud_archive_format: "zip" # zip/tar.bz2
2121
# [PHP CONFIG AND EXTENSIONS]
2222
# PHP configs
2323
# by default, use references stored in defaults/php_configs.yml
24+
nextcloud_install_php: true
2425
php_install_external_repos: true
2526
php_ver: "8.2"
2627
php_dir: "/etc/php/{{ php_ver }}"

roles/install_nextcloud/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
- name: Install PHP packages
1010
ansible.builtin.include_tasks: php_install.yml
11+
when: nextcloud_install_php
1112
tags:
1213
- install_apps
1314

0 commit comments

Comments
 (0)