Shit is sweet out here
This commit is contained in:
parent
b79c1563d5
commit
df070e3c93
@ -12,3 +12,6 @@
|
||||
- role: apps/vaultwarden
|
||||
vars:
|
||||
port: 7072
|
||||
- role: apps/erugo
|
||||
vars:
|
||||
port: 7073
|
0
roles/apps/erugo/defaults/main.yml
Normal file
0
roles/apps/erugo/defaults/main.yml
Normal file
17
roles/apps/erugo/tasks/main.yml
Normal file
17
roles/apps/erugo/tasks/main.yml
Normal 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
|
@ -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
|
||||
|
0
roles/docker/container-data/defaults/main.yml
Normal file
0
roles/docker/container-data/defaults/main.yml
Normal file
20
roles/docker/container-data/tasks/main.yml
Normal file
20
roles/docker/container-data/tasks/main.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user