Shit is sweet out here

This commit is contained in:
Javier Feliz 2025-07-04 01:49:35 -04:00
parent b79c1563d5
commit df070e3c93
6 changed files with 44 additions and 20 deletions

View File

@ -12,3 +12,6 @@
- role: apps/vaultwarden
vars:
port: 7072
- role: apps/erugo
vars:
port: 7073

View File

View File

@ -0,0 +1,17 @@
- name: Create the data dir on network drive
ansible.builtin.include_role:
role: docker/container-data
vars:
dir_name: "erugo-data"
- name: Create erugo container
community.docker.docker_container:
name: erugo
image: wardy784/erugo:latest
pull: true
state: started
restart_policy: always
ports:
- "{{ port }}:80"
volumes:
- /home/docker/container-data/erugo-data:/var/www/html/storage

View File

@ -1,24 +1,8 @@
- name: Create the data directory
ansible.builtin.file:
path: "/home/docker/container-data"
state: directory
mode: '0777'
become: true
- name: Mount the data share to the VM
ansible.builtin.include_tasks:
file: ../tasks/mount_nfs.yml
- name: Create the data dir on network drive
ansible.builtin.include_role:
role: docker/container-data
vars:
mount_path: "/home/docker/container-data"
mount_source: "10.89.0.15:/mnt/main/container-data"
- name: Create the data directory
ansible.builtin.file:
path: "/home/docker/container-data/vaultwarden-data"
state: directory
mode: '0777'
become: true
dir_name: "vaultwarden-data"
- name: Create vaultwarden container
community.docker.docker_container:
name: vaultwarden

View File

@ -0,0 +1,20 @@
- name: Create the data directory
ansible.builtin.file:
path: "/home/docker/container-data"
state: directory
mode: '0777'
become: true
- name: Mount the data share to the VM
ansible.builtin.include_tasks:
file: ../tasks/mount_nfs.yml
vars:
mount_path: "/home/docker/container-data"
mount_source: "10.89.0.15:/mnt/main/container-data"
- name: Create the data directory
ansible.builtin.file:
path: "/home/docker/container-data/{{ dir_name }}"
state: directory
mode: '0777'
become: true