finished testing. succeded installing owncloud.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
domain_base: softbox.net
|
||||
domain_base: reliyya.xyz
|
||||
hostname: owncloud.{{ domain_base }}
|
||||
|
||||
owncloud_core_path: "/var/www/owncloud"
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user