Nextcloud AIO

This commit is contained in:
Fabio Sinibaldi 2026-06-15 16:49:01 +02:00
parent cf83f7bd2c
commit a50ab533bc
5 changed files with 50 additions and 34 deletions

View File

@ -0,0 +1,17 @@
---
externals:
children:
nextcloud:
hosts:
c-service.sse.cloud.isti.cnr.it
rup_tests:
hosts:
liquid:
ansible_host: 146.48.108.15
nextrup_copy_test:
ansible_host: 146.48.108.16
misc_tests:
hosts:
bigbrain:
ansible_host: 146.48.108.14

View File

@ -1,17 +1,8 @@
--- ---
- name: Install Nextcloud AIO Docker - name: Install Nextcloud AIO Docker
hosts: all hosts: nextcloud
become: true become: true
vars:
pip_install_packages:
- name: docker
docker_version: "=5:28.2.2-1~ubuntu.24.04~noble"
docker_users:
- fabio
- ansible
roles: roles:
- geerlingguy.pip
- geerlingguy.docker - geerlingguy.docker
# - nextcloud_aio - nextcloud_aio

View File

@ -0,0 +1,3 @@
nextcloud_docker_image_tag: latest
nextcloud_docker_skip_domain_validation: "true"
nextcloud_docker_mastercontainer_volume_dir: /usr/data/nextcloud_aio_mastercontainer

View File

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

View File

@ -1,24 +1,31 @@
--- ---
- name: Create volumes - name: Pull docker image
debug: docker_image:
msg: name: "nextcloud/all-in-one"
- "TODO!!!" tag: "{{ nextcloud_docker_image_tag }}"
source: pull
- name: Download compose file - name: Create Master Container volume dir
become: true file:
ansible.builtin.git: path: "{{ nextcloud_docker_mastercontainer_volume_dir }}"
repo: "https://gitea-s2i2s.isti.cnr.it/sinibaldi/SSE-Lab" state: directory
dest: /usr/docker/SSE-Lab mode: "0766"
- name: Change ownership docker project files - name: Create container
become: true docker_container:
ansible.builtin.file: name: nextcloud-aio-mastercontainer
mode: '777' image: nextcloud/all-in-one
path: /usr/docker/SSE-Lab ports:
recurse: true - "8080:8080"
- "80:80"
- "8443:8443"
- name: create and start docker compose services env:
become: true APACHE_PORT: "11000"
community.docker.docker_compose_v2: APACHE_IP_BINDING: "0.0.0.0"
project_src: /usr/docker/SSE-Lab/dockerized/nextcloud-aio APACHE_ADDITIONAL_NETWORK: ""
SKIP_DOMAIN_VALIDATION: "{{ nextcloud_docker_skip_domain_validation }}"
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
restart_policy : "always"
init : true