Nextcloud AIO playbook and role

This commit is contained in:
Fabio Sinibaldi 2025-11-11 17:32:52 +01:00
parent d18e1df2cd
commit c9cde03e58
5 changed files with 28 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
- name: Basic check nodes
hosts: all
roles:
- nextcloud_aio

View File

@ -0,0 +1,2 @@
dependencies:
- role: docker

View File

@ -0,0 +1,2 @@
---
- import_tasks: nextcloud_docker_aio.yaml

View File

@ -1,6 +1,18 @@
---
# NB inherit docker
- name: Create volumes
## TODO
debug:
msg:
- "TODO!!!"
- name: launch Nextcloud aio docker image
- name: Download compose file
become: true
become_user: docker
ansible.builtin.git:
repo: "https://gitea-s2i2s.isti.cnr.it/sinibaldi/SSE-Lab"
dest: SSE-Lab
- name: create and start docker compose services
become: true
become_user: docker
community.docker.docker_compose_v2:
project_src: ~/SSE-Lab/dockerized/nextcloud-aio/compose.yaml

View File

@ -29,7 +29,11 @@ Basic checks connectivity for **all**
##### NextCloud
Installs Nextcloud AIO using SSE Lab / dockerized / nextcloud-aio
Calls role nextcloud_aio, dependent on docker role.
- Downloads SSE-Lab Repo
- Runs compose up (using ansible plugins)
E.g. `ansible-playbook -i inventories/ -l nextrup_copy_test playbooks/nextcloud.yaml`
### Bootstrap ###
Creates sudoer user ansible, necessitates of sudoer user.