Compare commits

...

8 Commits

7 changed files with 40 additions and 30 deletions

View File

@ -1,5 +1,9 @@
---
externals: externals:
children: children:
nextcloud:
hosts:
c-service.sse.cloud.isti.cnr.it
rup_tests: rup_tests:
hosts: hosts:
liquid: liquid:

View File

@ -8,5 +8,5 @@ wg_server_address: 192.168.99.1/32
wg_peers: wg_peers:
- name: fabio_test - name: fabio_test
publicKey: "dzODOKndtafZSf2GqvClFdxrpwyNJnZ/AsZkNl+ovEE=" publicKey: "byR/8T9AZK2t1cxDCLVzdLXsxcUPRXA06CnfI8gwQyY="
allowedIP: "192.168.99.4/32" allowedIP: "192.168.99.4/32"

View File

@ -10,7 +10,7 @@ sifi:
# ansible_host: 10.20.30.111 # ansible_host: 10.20.30.111
wireguard_server: wireguard_server:
hosts: hosts:
wireguarder.sifi.isti.cnr.it: vpn-1.sse.cloud.isti.cnr.it:
# ansible_host: 146.48.108.13 # ansible_host: 146.48.108.13
nameserver: nameserver:
hosts: hosts:

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,4 @@
nextcloud_docker_image_name: "ghcr.io/nextcloud-releases/all-in-one"
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,18 +1,31 @@
--- ---
- name: Create volumes - name: Pull docker image
debug: docker_image:
msg: name: "{{ nextcloud_docker_image_name }}"
- "TODO!!!" tag: "{{ nextcloud_docker_image_tag }}"
source: pull
- name: Download compose file - name: Create Master Container volume dir
become: true file:
become_user: docker path: "{{ nextcloud_docker_mastercontainer_volume_dir }}"
ansible.builtin.git: state: directory
repo: "https://gitea-s2i2s.isti.cnr.it/sinibaldi/SSE-Lab" mode: "0766"
dest: SSE-Lab
- name: create and start docker compose services - name: Create container
become: true docker_container:
become_user: docker name: nextcloud-aio-mastercontainer
community.docker.docker_compose_v2: image: "{{ nextcloud_docker_image_name }}"
project_src: ~/SSE-Lab/dockerized/nextcloud-aio/compose.yaml ports:
- "8080:8080"
- "80:80"
- "8443:8443"
env:
APACHE_PORT: "443"
APACHE_IP_BINDING: "0.0.0.0"
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