finished setup of lamp stack plus owncloud src. testing needed.

This commit is contained in:
2024-11-29 16:46:55 +01:00
parent bb209219aa
commit 8eb001f390
12 changed files with 198 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
---
- name: Download ownCloud source.
ansible.builtin.get_url:
url: https://download.owncloud.com/server/stable/owncloud-complete-latest.tar.bz2
dest: "/tmp/owncloud-complete-latest.tar.bz2"
- name: Extract the archive.
ansible.builtin.unarchive:
src: "/tmp/owncloud-complete-latest.tar.bz2"
dest: "/var/www/owncloud"
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 }}"