Compare commits
No commits in common. "main" and "automotive" have entirely different histories.
main
...
automotive
|
|
@ -1,9 +1,5 @@
|
|||
---
|
||||
externals:
|
||||
children:
|
||||
nextcloud:
|
||||
hosts:
|
||||
c-service.sse.cloud.isti.cnr.it
|
||||
rup_tests:
|
||||
hosts:
|
||||
liquid:
|
||||
|
|
@ -8,8 +8,5 @@ wg_server_address: 192.168.99.1/32
|
|||
|
||||
wg_peers:
|
||||
- name: fabio_test
|
||||
publicKey: "byR/8T9AZK2t1cxDCLVzdLXsxcUPRXA06CnfI8gwQyY="
|
||||
allowedIP: "192.168.99.4/32"
|
||||
- name: lucio
|
||||
publicKey: "IifwTYaBMoL3IhAHHplyuVMCir7PHNT57cP57RvEIwg="
|
||||
allowedIP: "192.168.99.3/32"
|
||||
publicKey: "dzODOKndtafZSf2GqvClFdxrpwyNJnZ/AsZkNl+ovEE="
|
||||
allowedIP: "192.168.99.4/32"
|
||||
|
|
@ -2,22 +2,22 @@
|
|||
# SIFI
|
||||
sifi:
|
||||
children:
|
||||
#opn:
|
||||
#hosts:
|
||||
# sifi_opnsense.sifi.isti.cnr.it:
|
||||
opn:
|
||||
hosts:
|
||||
sifi_opnsense.sifi.isti.cnr.it:
|
||||
# ns1.sifi.isti.cnr.it:
|
||||
# ansible_host: 146.48.108.51 #[WAN public ip]
|
||||
# ansible_host: 10.20.30.111
|
||||
wireguard_server:
|
||||
hosts:
|
||||
vpn-1.sifi.sse.cloud.isti.cnr.it:
|
||||
wireguarder.sifi.isti.cnr.it:
|
||||
# ansible_host: 146.48.108.13
|
||||
# nameserver:
|
||||
# hosts:
|
||||
#ns1.sifi.isti.cnr.it:
|
||||
# ansible_host: 146.48.108.51
|
||||
nameserver:
|
||||
hosts:
|
||||
ns1.sifi.isti.cnr.it:
|
||||
ansible_host: 146.48.108.51
|
||||
# dns1.internal.sifi.isti.cnr.it:
|
||||
# ansible_host: 10.11.12.11
|
||||
workers:
|
||||
hosts:
|
||||
dev-1.sifi.sse.cloud.isti.cnr.it:
|
||||
worker1.internal.sifi.isti.cnr.it:
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
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
|
||||
|
|
@ -1,8 +1,17 @@
|
|||
---
|
||||
- name: Install Nextcloud AIO Docker
|
||||
hosts: nextcloud
|
||||
hosts: all
|
||||
become: true
|
||||
vars:
|
||||
pip_install_packages:
|
||||
- name: docker
|
||||
docker_version: "=5:28.2.2-1~ubuntu.24.04~noble"
|
||||
docker_users:
|
||||
- fabio
|
||||
- ansible
|
||||
|
||||
|
||||
roles:
|
||||
- geerlingguy.pip
|
||||
- geerlingguy.docker
|
||||
- nextcloud_aio
|
||||
# - nextcloud_aio
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
docker_version: "*.*.*"
|
||||
docker_sudo_users: []
|
||||
|
||||
#SPDX-License-Identifier: MIT-0
|
||||
---
|
||||
# defaults file for docker
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
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
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- role: docker
|
||||
|
|
@ -1,31 +1,18 @@
|
|||
---
|
||||
- name: Pull docker image
|
||||
docker_image:
|
||||
name: "{{ nextcloud_docker_image_name }}"
|
||||
tag: "{{ nextcloud_docker_image_tag }}"
|
||||
source: pull
|
||||
- name: Create volumes
|
||||
debug:
|
||||
msg:
|
||||
- "TODO!!!"
|
||||
|
||||
- name: Create Master Container volume dir
|
||||
file:
|
||||
path: "{{ nextcloud_docker_mastercontainer_volume_dir }}"
|
||||
state: directory
|
||||
mode: "0766"
|
||||
- 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 container
|
||||
docker_container:
|
||||
name: nextcloud-aio-mastercontainer
|
||||
image: "{{ nextcloud_docker_image_name }}"
|
||||
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
|
||||
- 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
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
# requirements.yml
|
||||
---
|
||||
roles:
|
||||
- name: githubixx.ansible_role_wireguard
|
||||
src: https://github.com/githubixx/ansible-role-wireguard.git
|
||||
version: 19.0.0
|
||||
|
||||
# - name: bodsch.dns.bind
|
||||
# version:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue