aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nextcloud/occ.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nextcloud/occ.yml')
-rw-r--r--roles/nextcloud/occ.yml24
1 files changed, 12 insertions, 12 deletions
diff --git a/roles/nextcloud/occ.yml b/roles/nextcloud/occ.yml
index 04c9539..c881d30 100644
--- a/roles/nextcloud/occ.yml
+++ b/roles/nextcloud/occ.yml
@@ -3,7 +3,7 @@
- name: maintenance:install nextcloud
ansible.builtin.command:
argv:
- - php
+ - "{{ nextcloud__php_bin }}"
- occ
- maintenance:install
- --database=pgsql
@@ -26,13 +26,13 @@
- name: set system settings
ansible.builtin.command:
- cmd: "php occ config:system:set {{ item.option }} {{ item.value }}"
+ cmd: "{{ nextcloud__php_bin }} occ config:system:set {{ item.option }} {{ item.value }}"
chdir: "{{ httpd_pre__chroot_dir }}/nextcloud"
loop: "{{ nextcloud__occ_system_settings }}"
- name: disable applications
ansible.builtin.command:
- cmd: "php occ app:enable {{ item }}"
+ cmd: "{{ nextcloud__php_bin }} occ app:enable {{ item }}"
chdir: "{{ httpd_pre__chroot_dir }}/nextcloud"
loop: "{{ nextcloud__disabled_apps }}"
register: nextcloud__result_disable_applications
@@ -41,25 +41,25 @@
- name: enable applications
ansible.builtin.command:
- cmd: "php occ app:enable {{ item }}"
+ cmd: "{{ nextcloud__php_bin }} occ app:enable {{ item }}"
chdir: "{{ httpd_pre__chroot_dir }}/nextcloud"
loop: "{{ nextcloud__enabled_apps }}"
register: nextcloud__result_enable_applications
changed_when:
- "'already enabled' not in nextcloud__result_enable_applications.stdout"
-- name: enable encryption
- ansible.builtin.command:
- cmd: php occ encryption:enable
- chdir: "{{ httpd_pre__chroot_dir }}/nextcloud"
- register: nextcloud__result_enable_encryption
- changed_when:
- - "'already enabled' not in nextcloud__result_enable_encryption.stdout"
+# - name: enable encryption
+# ansible.builtin.command:
+# cmd: "{{ nextcloud__php_bin }} occ encryption:enable"
+# chdir: "{{ httpd_pre__chroot_dir }}/nextcloud"
+# register: nextcloud__result_enable_encryption
+# changed_when:
+# - "'already enabled' not in nextcloud__result_enable_encryption.stdout"
- name: create application users
ansible.builtin.command:
argv:
- - php
+ - "{{ nextcloud__php_bin }}"
- occ
- user:add
- --password-from-env
remember that computers suck.