added more configuration, but tests failed.

This commit is contained in:
2024-12-02 17:33:04 +01:00
parent 09d4217d16
commit 9031ce55b5
10 changed files with 76 additions and 14 deletions

View File

@@ -11,9 +11,14 @@
dest: "/var/www/"
owner: www-data
remote_src: yes
#- name: Configure ownCloud's trusted domains
# command: "{{ item }}"
# loop:
# - my_ip=$(hostname -I|cut -f1 -d ' ')
# - occ config:system:set trusted_domains 1 --value="$my_ip"
# - occ config:system:set trusted_domains 2 --value="{{ hostname }}"
- name: Install ownCloud (via occ)
command: >
occ maintenance:install --database "mysql" --database-name "owncloud" --database-user "owncloud" --database-pass "{{ mysql_passwd }}" --data-dir "{{ owncloud_core_path }}/data" --admin-user "root" --admin-pass "{{ mysql_passwd }}"
- name: Configure ownCloud's trusted domains
command: "{{ item }}"
loop:
- my_ip=$(hostname -I|cut -f1 -d ' ')
- occ config:system:set trusted_domains 1 --value="$my_ip"
- occ config:system:set trusted_domains 2 --value="{{ hostname }}"