added symlink

This commit is contained in:
Jayne Passmore 2025-04-24 19:31:31 -05:00
parent 8f83861ef7
commit aac25b2252
6 changed files with 15 additions and 10 deletions

View file

@ -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 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: 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:nextcloud:v1.0:workload,nextcloud
role:owncloud:testing:workload,owncloud role:nextcloud:testing:workload,nextcloud
License License
------- -------

View file

@ -1,3 +1,3 @@
#SPDX-License-Identifier: MIT-0 #SPDX-License-Identifier: MIT-0
--- ---
# defaults file for role-owncloud # defaults file for role-nextcloud

View file

@ -1,3 +1,3 @@
#SPDX-License-Identifier: MIT-0 #SPDX-License-Identifier: MIT-0
--- ---
# handlers file for role-owncloud # handlers file for role-nextcloud

View file

@ -1,6 +1,6 @@
#SPDX-License-Identifier: MIT-0 #SPDX-License-Identifier: MIT-0
--- ---
# tasks file for role-owncloud # tasks file for role-nextcloud
- name: install nextcloud and dependencies - name: install nextcloud and dependencies
ansible.builtin.package: ansible.builtin.package:
name: name:
@ -17,7 +17,12 @@
src: files/nextcloud-php.ini src: files/nextcloud-php.ini
dest: /etc/webapps/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 - name: Create sessions directory
ansible.builtin.file: ansible.builtin.file:

View file

@ -3,4 +3,4 @@
- hosts: localhost - hosts: localhost
remote_user: root remote_user: root
roles: roles:
- role-owncloud - role-nextcloud

View file

@ -1,3 +1,3 @@
#SPDX-License-Identifier: MIT-0 #SPDX-License-Identifier: MIT-0
--- ---
# vars file for role-owncloud # vars file for role-nextcloud