diff --git a/roles/nextcloud/defaults/main.yml b/roles/nextcloud/defaults/main.yml index 4f6f0b3..9b03d8d 100644 --- a/roles/nextcloud/defaults/main.yml +++ b/roles/nextcloud/defaults/main.yml @@ -1,6 +1,6 @@ --- -nextcloud_major_version: "25" +nextcloud_major_version: "26" nextcloud_trusted_domains: - "cloud.example.org" diff --git a/roles/php/defaults/main.yml b/roles/php/defaults/main.yml index a9f69ad..6a88178 100644 --- a/roles/php/defaults/main.yml +++ b/roles/php/defaults/main.yml @@ -1,6 +1,7 @@ --- -php_version: "8.1" +php_version: "8.2" +php_use_sury_repo: no php_ini: PHP: @@ -13,3 +14,4 @@ php_ini: opcache.max_accelerated_files: "10000" opcache.revalidate_freq: "60" opcache.save_comments: "1" + diff --git a/roles/php/tasks/install.yml b/roles/php/tasks/install.yml index 5ab9add..1a3d8d1 100644 --- a/roles/php/tasks/install.yml +++ b/roles/php/tasks/install.yml @@ -4,11 +4,13 @@ ansible.builtin.apt_key: url: https://packages.sury.org/php/apt.gpg keyring: /etc/apt/trusted.gpg.d/packages.sury.org-php.gpg + when: php_use_sury_repo - name: Add packages.sury.org ansible.builtin.apt_repository: filename: packages.sury.org-php.list repo: "deb https://packages.sury.org/php/ {{ ansible_facts.distribution_release }} main" + state: "{{ php_use_sury_repo | ternary('present', 'absent') }}" - name: Install dependencies ansible.builtin.apt: