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 }} hostname: owncloud.{{ domain_base }}
owncloud_core_path: "/var/www/owncloud" owncloud_core_path: "/var/www/owncloud"

View File

@@ -8,11 +8,12 @@
- name: Extract the archive. - name: Extract the archive.
ansible.builtin.unarchive: ansible.builtin.unarchive:
src: "/tmp/owncloud-complete-latest.tar.bz2" src: "/tmp/owncloud-complete-latest.tar.bz2"
dest: "/var/www/owncloud" dest: "/var/www/"
owner: www-data owner: www-data
remote_src: yes
- name: Configure ownCloud's trusted domains #- name: Configure ownCloud's trusted domains
command: > # command: "{{ item }}"
my_ip=$(hostname -I|cut -f1 -d ' ') # loop:
occ config:system:set trusted_domains 1 --value="$my_ip" # - my_ip=$(hostname -I|cut -f1 -d ' ')
occ config:system:set trusted_domains 2 --value="{{ hostname }}" # - occ config:system:set trusted_domains 1 --value="$my_ip"
# - occ config:system:set trusted_domains 2 --value="{{ hostname }}"