finished testing. succeded installing owncloud.

This commit is contained in:
CubelaPetar
2024-12-01 12:47:46 +01:00
parent d2ab787637
commit 8d250375bc
2 changed files with 9 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
domain_base: softbox.net
domain_base: reliyya.xyz
hostname: owncloud.{{ domain_base }}
owncloud_core_path: "/var/www/owncloud"

View File

@@ -8,11 +8,12 @@
- name: Extract the archive.
ansible.builtin.unarchive:
src: "/tmp/owncloud-complete-latest.tar.bz2"
dest: "/var/www/owncloud"
dest: "/var/www/"
owner: www-data
- name: Configure ownCloud's trusted domains
command: >
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 }}"
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 }}"