From aac25b2252eeb38b25d322d99336c57f27ed0d67 Mon Sep 17 00:00:00 2001 From: Jayne Passmore Date: Thu, 24 Apr 2025 19:31:31 -0500 Subject: [PATCH] added symlink --- README.md | 8 ++++---- defaults/main.yml | 2 +- handlers/main.yml | 2 +- tasks/main.yml | 9 +++++++-- tests/test.yml | 2 +- vars/main.yml | 2 +- 6 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1f44674..b64533e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -role-owncloud +role-nextcloud ========= -This role installs and configures the owncloud server and web UI +This role installs and configures the nextcloud server and web UI Requirements ------------ @@ -23,8 +23,8 @@ Example Playbook Template Playbook creation should be handled by playbook-builder. To include role in a playbook, add one of these lines (changing version/branch as needed) to the template with other core entries: -role:owncloud:v1.0:workload,owncloud -role:owncloud:testing:workload,owncloud +role:nextcloud:v1.0:workload,nextcloud +role:nextcloud:testing:workload,nextcloud License ------- diff --git a/defaults/main.yml b/defaults/main.yml index c40125a..487ad98 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,3 @@ #SPDX-License-Identifier: MIT-0 --- -# defaults file for role-owncloud +# defaults file for role-nextcloud diff --git a/handlers/main.yml b/handlers/main.yml index c3add89..d78cbd4 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,3 +1,3 @@ #SPDX-License-Identifier: MIT-0 --- -# handlers file for role-owncloud +# handlers file for role-nextcloud diff --git a/tasks/main.yml b/tasks/main.yml index 5b6f5d7..12d18eb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,6 @@ #SPDX-License-Identifier: MIT-0 --- -# tasks file for role-owncloud +# tasks file for role-nextcloud - name: install nextcloud and dependencies ansible.builtin.package: name: @@ -17,7 +17,12 @@ src: files/nextcloud-php.ini dest: /etc/webapps/nextcloud/php.ini -# determine how to handle /etc/webapps/nextcloud/config/config.php - it contains passwords. Probably just a symlink to the file +- name: enforce symlink to nextclound config file + ansible.builtin.file: + src: /mnt/nextcloud/config.php + dest: /etc/webapps/nextcloud/config/config.php + state: link + force: yes - name: Create sessions directory ansible.builtin.file: diff --git a/tests/test.yml b/tests/test.yml index 8a3b7d9..407ac19 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -3,4 +3,4 @@ - hosts: localhost remote_user: root roles: - - role-owncloud + - role-nextcloud diff --git a/vars/main.yml b/vars/main.yml index ee37f20..69052be 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ #SPDX-License-Identifier: MIT-0 --- -# vars file for role-owncloud +# vars file for role-nextcloud