mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 02:53:11 +00:00
Merge branch 'mv-glances' of https://github.com/PurpleNinja225/NASible into PurpleNinja225-mv-glances
This commit is contained in:
commit
5bfe3afc02
4 changed files with 19 additions and 19 deletions
|
@ -21,7 +21,6 @@ jellyfin_enabled: false
|
|||
youtubedlmaterial_enabled: false
|
||||
|
||||
# System Management
|
||||
glances_enabled: false
|
||||
stats_enabled: false
|
||||
guacamole_enabled: false
|
||||
virtual_desktop_enabled: false
|
||||
|
@ -297,14 +296,6 @@ gitlab_port_http: "4080"
|
|||
gitlab_port_https: "4443"
|
||||
gitlab_port_ssh: "422"
|
||||
|
||||
###
|
||||
### Glances
|
||||
###
|
||||
glances_available_externally: "false"
|
||||
glances_port_one: "61208"
|
||||
glances_port_two: "61209"
|
||||
|
||||
|
||||
###
|
||||
### Guacamole
|
||||
###
|
||||
|
|
9
nas.yml
9
nas.yml
|
@ -103,6 +103,11 @@
|
|||
- get_iplayer
|
||||
when: (get_iplayer_enabled | default(False))
|
||||
|
||||
- role: glances
|
||||
tags:
|
||||
- glances
|
||||
when: (glances_enabled | default(False))
|
||||
|
||||
- role: gotify
|
||||
tags:
|
||||
- gotify
|
||||
|
@ -263,10 +268,6 @@
|
|||
when: (thelounge_enabled | default(False))
|
||||
tags: thelounge
|
||||
|
||||
- import_tasks: tasks/glances.yml
|
||||
when: (glances_enabled | default(False))
|
||||
tags: glances
|
||||
|
||||
- import_tasks: tasks/gitlab.yml
|
||||
when: (gitlab_enabled | default(False))
|
||||
tags: gitlab
|
||||
|
|
9
roles/glances/defaults/main.yml
Normal file
9
roles/glances/defaults/main.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
# enable or disable the application
|
||||
glances_enabled: false
|
||||
glances_available_externally: "false"
|
||||
|
||||
# network
|
||||
glances_hostname: "glances"
|
||||
glances_port_one: "61208"
|
||||
glances_port_two: "61209"
|
|
@ -1,23 +1,22 @@
|
|||
---
|
||||
- name: Glances Docker Container
|
||||
- name: Create Glances Docker Container
|
||||
docker_container:
|
||||
name: glances
|
||||
image: nicolargo/glances
|
||||
pull: true
|
||||
ports:
|
||||
- "{{ glances_port_one }}:61208"
|
||||
- "{{ glances_port_two }}:61209"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
- "/etc/timezone:/etc/timezone:ro"
|
||||
pid_mode: host
|
||||
ports:
|
||||
- "{{ glances_port_one }}:61208"
|
||||
- "{{ glances_port_two }}:61209"
|
||||
env:
|
||||
GLANCES_OPT: "-w"
|
||||
restart_policy: unless-stopped
|
||||
memory: 1g
|
||||
labels:
|
||||
traefik.enable: "{{ glances_available_externally }}"
|
||||
traefik.http.routers.glances.rule: "Host(`glances.{{ ansible_nas_domain }}`)"
|
||||
traefik.http.routers.glances.rule: "Host(`{{ glances_hostname }}.{{ ansible_nas_domain }}`)"
|
||||
traefik.http.routers.glances.tls.certresolver: "letsencrypt"
|
||||
traefik.http.routers.glances.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||
traefik.http.routers.glances.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
Loading…
Reference in a new issue