remove problematic tasks from ansible and define a post-install script

This commit is contained in:
2024-12-03 16:47:24 +01:00
parent 9031ce55b5
commit 2cbec8e59f
6 changed files with 81 additions and 39 deletions

View File

@@ -11,14 +11,13 @@
dest: "/var/www/"
owner: www-data
remote_src: yes
- 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 }}"
#- 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 }}"