Compare commits

...

38 Commits

Author SHA1 Message Date
Fabio Sinibaldi 1d970e843e Merge branch 'sifi' 2026-06-22 17:13:29 +02:00
Fabio Sinibaldi d60fafdf7e removed obsolete requirements file 2026-06-22 17:03:52 +02:00
Fabio Sinibaldi 3550797a5f requirements for wireguard role 2026-06-22 16:49:07 +02:00
Fabio Sinibaldi 2b18b0f316 Added vpn-1 server e dev-1 2026-06-22 16:49:07 +02:00
Fabio Sinibaldi 53a6db2fad Added vpn-1 server e dev-1 2026-06-22 16:49:07 +02:00
Fabio Sinibaldi a09e56f4e3 added lucio 2026-06-22 16:49:07 +02:00
Fabio Sinibaldi 0d7b47021e Make Apache listen to 443 2026-06-22 16:49:07 +02:00
Fabio Sinibaldi c3adcc1cf1 wireguard key fabio 2026-06-22 16:49:07 +02:00
Fabio Sinibaldi 4835be1e30 inventory update 2026-06-22 16:49:07 +02:00
Fabio Sinibaldi bba9096ac4 Fixed N Aio image tag and name 2026-06-22 16:49:07 +02:00
Fabio Sinibaldi a50ab533bc Nextcloud AIO 2026-06-22 16:49:07 +02:00
Fabio Sinibaldi cf83f7bd2c Misc tests 2026-06-22 16:47:46 +02:00
Fabio Sinibaldi e29626c550 Defined role wordpress-docker 2026-06-22 16:47:46 +02:00
Fabio Sinibaldi af433bf4f9 Set upload max file size to 20M 2026-06-22 16:47:46 +02:00
Fabio Sinibaldi 1ba1f48a67 Extended geerlingguy.certbot role 2026-06-22 16:47:46 +02:00
Fabio Sinibaldi 152f556d55 removed IP 2026-06-22 16:47:46 +02:00
Fabio Sinibaldi e864964b95 Https enabled and letsencrypt working 2026-06-22 16:47:46 +02:00
Fabio Sinibaldi 976b96b3bb Removed wrong imports 2026-06-22 16:47:46 +02:00
Fabio Sinibaldi ce83465f7b Https with letsencrypt 2026-06-22 16:47:46 +02:00
Fabio Sinibaldi 5472f1ff2a HTTP setup 2026-06-22 16:47:46 +02:00
Fabio Sinibaldi 7c837e3a74 Fixed templates folder 2026-06-22 16:45:33 +02:00
Fabio Sinibaldi 2d8495fb53 First try 2026-06-22 16:45:33 +02:00
Fabio Sinibaldi bb6c96ebf0 Ansible user home in /home 2026-06-22 16:45:33 +02:00
Fabio Sinibaldi eec3cc677f Merge pull request 'next_migration' (#9) from next_migration into main
Reviewed-on: #9
2026-06-22 16:42:27 +02:00
Fabio Sinibaldi b1a19a374c Added vpn-1 server e dev-1 2026-06-22 16:30:57 +02:00
Fabio Sinibaldi 954a6c3562 Added vpn-1 server e dev-1 2026-06-22 16:29:59 +02:00
Fabio Sinibaldi 16309ca46f added lucio 2026-06-22 16:28:58 +02:00
Fabio Sinibaldi e0b7533bec Merge pull request 'next_migration' (#8) from next_migration into main
Reviewed-on: #8
2026-06-19 16:10:06 +02:00
Fabio Sinibaldi 57eeda2a52 Make Apache listen to 443 2026-06-19 16:07:15 +02:00
Fabio Sinibaldi 8b4d7737e1 wireguard key fabio 2026-06-19 16:06:58 +02:00
Fabio Sinibaldi dd585233e2 inventory update 2026-06-19 16:06:39 +02:00
Fabio Sinibaldi e320843d5a Fixed N Aio image tag and name 2026-06-16 12:04:56 +02:00
Fabio Sinibaldi 84b509ec37 Nextcloud AIO 2026-06-15 16:49:01 +02:00
Fabio Sinibaldi e3c1b4082e Merge pull request 'automotive' (#7) from automotive into main
Reviewed-on: #7
2026-06-12 11:15:33 +02:00
Fabio Sinibaldi 5bef64c3c0 fix paths 2026-06-04 09:41:44 +02:00
Fabio Sinibaldi 525fc50429 clean defaults file 2026-06-04 09:41:02 +02:00
Fabio Sinibaldi d5698f4be6 requirements for wireguard role 2026-06-04 09:40:16 +02:00
Fabio Sinibaldi 256fdc5b58 Merge pull request 'automotive' (#6) from automotive into main
Reviewed-on: #6
2026-06-04 09:29:56 +02:00
10 changed files with 71 additions and 42 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,8 @@ 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"
- name: lucio
publicKey: "IifwTYaBMoL3IhAHHplyuVMCir7PHNT57cP57RvEIwg="
allowedIP: "192.168.99.3/32"

View File

@ -2,22 +2,22 @@
# SIFI # SIFI
sifi: sifi:
children: children:
opn: #opn:
hosts: #hosts:
sifi_opnsense.sifi.isti.cnr.it: # sifi_opnsense.sifi.isti.cnr.it:
# ns1.sifi.isti.cnr.it: # ns1.sifi.isti.cnr.it:
# ansible_host: 146.48.108.51 #[WAN public ip] # ansible_host: 146.48.108.51 #[WAN public ip]
# 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.sifi.sse.cloud.isti.cnr.it:
# ansible_host: 146.48.108.13 # ansible_host: 146.48.108.13
nameserver: # nameserver:
hosts: # hosts:
ns1.sifi.isti.cnr.it: #ns1.sifi.isti.cnr.it:
ansible_host: 146.48.108.51 # ansible_host: 146.48.108.51
# dns1.internal.sifi.isti.cnr.it: # dns1.internal.sifi.isti.cnr.it:
# ansible_host: 10.11.12.11 # ansible_host: 10.11.12.11
workers: workers:
hosts: hosts:
worker1.internal.sifi.isti.cnr.it: dev-1.sifi.sse.cloud.isti.cnr.it:

View File

@ -0,0 +1,12 @@
---
vlab-1:
children:
wireguard_server:
hosts:
vpn-1.sse.cloud.isti.cnr.it:
nextcloud:
hosts:
b-service_2:
ansible_host: 10.22.2.77
b-service_1:
ansible_host: 10.22.1.145

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

@ -1,3 +1,3 @@
#SPDX-License-Identifier: MIT-0 docker_version: "*.*.*"
--- docker_sudo_users: []
# defaults file for docker

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

View File

@ -1,6 +1,10 @@
# requirements.yml # requirements.yml
--- ---
roles: roles:
- name: githubixx.ansible_role_wireguard
src: https://github.com/githubixx/ansible-role-wireguard.git
version: 19.0.0
# - name: bodsch.dns.bind # - name: bodsch.dns.bind
# version: # version: