mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 11:03:07 +00:00
mv cloudcmd to roles
This commit is contained in:
parent
3645e1ac29
commit
6d89265cc0
4 changed files with 31 additions and 20 deletions
|
@ -40,7 +40,6 @@ miniflux_enabled: false
|
||||||
glances_enabled: false
|
glances_enabled: false
|
||||||
stats_enabled: false
|
stats_enabled: false
|
||||||
guacamole_enabled: false
|
guacamole_enabled: false
|
||||||
cloudcmd_enabled: false
|
|
||||||
virtual_desktop_enabled: false
|
virtual_desktop_enabled: false
|
||||||
krusader_enabled: false
|
krusader_enabled: false
|
||||||
|
|
||||||
|
@ -388,16 +387,6 @@ miniflux_admin_username: admin
|
||||||
miniflux_admin_password: supersecure
|
miniflux_admin_password: supersecure
|
||||||
miniflux_port: "8070"
|
miniflux_port: "8070"
|
||||||
|
|
||||||
###
|
|
||||||
### CloudCmd
|
|
||||||
###
|
|
||||||
cloudcmd_available_externally: "false"
|
|
||||||
cloudcmd_data_directory: "{{ docker_home }}/cloudcmd/config"
|
|
||||||
cloudcmd_browse_directory: "/"
|
|
||||||
cloudcmd_user_id: "0"
|
|
||||||
cloudcmd_group_id: "0"
|
|
||||||
cloudcmd_port: "7373"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Krusader
|
### Krusader
|
||||||
###
|
###
|
||||||
|
|
9
nas.yml
9
nas.yml
|
@ -58,6 +58,11 @@
|
||||||
- bitwarden
|
- bitwarden
|
||||||
when: (bitwarden_enabled | default(False))
|
when: (bitwarden_enabled | default(False))
|
||||||
|
|
||||||
|
- role: cloudcmd
|
||||||
|
tags:
|
||||||
|
- cloudcmd
|
||||||
|
when: (cloudcmd_enabled | default(False))
|
||||||
|
|
||||||
- role: cloudflare_ddns
|
- role: cloudflare_ddns
|
||||||
tags:
|
tags:
|
||||||
- cloudflare_ddns
|
- cloudflare_ddns
|
||||||
|
@ -287,10 +292,6 @@
|
||||||
when: (jellyfin_enabled | default(False))
|
when: (jellyfin_enabled | default(False))
|
||||||
tags: jellyfin
|
tags: jellyfin
|
||||||
|
|
||||||
- import_tasks: tasks/cloudcmd.yml
|
|
||||||
when: (cloudcmd_enabled | default(False))
|
|
||||||
tags: cloudcmd
|
|
||||||
|
|
||||||
- import_tasks: tasks/krusader.yml
|
- import_tasks: tasks/krusader.yml
|
||||||
when: (krusader_enabled | default(False))
|
when: (krusader_enabled | default(False))
|
||||||
tags: krusader
|
tags: krusader
|
||||||
|
|
19
roles/cloudcmd/defaults/main.yml
Normal file
19
roles/cloudcmd/defaults/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
# enable or disable the application
|
||||||
|
cloudcmd_enabled: false
|
||||||
|
cloudcmd_available_externally: "false"
|
||||||
|
|
||||||
|
# directories
|
||||||
|
cloudcmd_data_directory: "{{ docker_home }}/cloudcmd/config"
|
||||||
|
cloudcmd_browse_directory: "/"
|
||||||
|
|
||||||
|
# uid / gid
|
||||||
|
cloudcmd_user_id: "0"
|
||||||
|
cloudcmd_group_id: "0"
|
||||||
|
|
||||||
|
# network
|
||||||
|
cloudcmd_hostname: "cloudcmd"
|
||||||
|
cloudcmd_port: "7373"
|
||||||
|
|
||||||
|
# specs
|
||||||
|
cloudcmd_memory: "1g"
|
|
@ -1,12 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: Create CloudCmd Directories
|
- name: Create Cloudcmd Directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
# mode: 0755
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ cloudcmd_data_directory }}"
|
- "{{ cloudcmd_data_directory }}"
|
||||||
|
|
||||||
- name: CloudCmd
|
- name: Create Cloudcmd Docker Container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: cloudcmd
|
name: cloudcmd
|
||||||
image: coderaiser/cloudcmd
|
image: coderaiser/cloudcmd
|
||||||
|
@ -14,6 +15,7 @@
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ cloudcmd_data_directory }}:/config:rw"
|
- "{{ cloudcmd_data_directory }}:/config:rw"
|
||||||
- "{{ cloudcmd_browse_directory }}:/mnt/fs"
|
- "{{ cloudcmd_browse_directory }}:/mnt/fs"
|
||||||
|
network_mode: "bridge"
|
||||||
ports:
|
ports:
|
||||||
- "{{ cloudcmd_port }}:8000"
|
- "{{ cloudcmd_port }}:8000"
|
||||||
env:
|
env:
|
||||||
|
@ -21,11 +23,11 @@
|
||||||
PUID: "{{ cloudcmd_user_id }}"
|
PUID: "{{ cloudcmd_user_id }}"
|
||||||
PGID: "{{ cloudcmd_group_id }}"
|
PGID: "{{ cloudcmd_group_id }}"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
memory: 1g
|
memory: "{{ cloudcmd_memory }}"
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "{{ cloudcmd_available_externally }}"
|
traefik.enable: "{{ cloudcmd_available_externally }}"
|
||||||
traefik.http.routers.cloudcmd.rule: "Host(`cloudcmd.{{ ansible_nas_domain }}`)"
|
traefik.http.routers.cloudcmd.rule: "Host(`{{ cloudcmd_hostname }}.{{ ansible_nas_domain }}`)"
|
||||||
traefik.http.routers.cloudcmd.tls.certresolver: "letsencrypt"
|
traefik.http.routers.cloudcmd.tls.certresolver: "letsencrypt"
|
||||||
traefik.http.routers.cloudcmd.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
traefik.http.routers.cloudcmd.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||||
traefik.http.routers.cloudcmd.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
traefik.http.routers.cloudcmd.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
||||||
traefik.http.services.cloudcmd.loadbalancer.server.port: "8000"
|
traefik.http.services.cloudcmd.loadbalancer.server.port: "8000"
|
Loading…
Reference in a new issue