Install scrutiny
This commit is contained in:
parent
a67361b9b5
commit
fd83820faa
4 changed files with 52 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
- duplicati
|
||||
- grafana
|
||||
- gitlab
|
||||
- scrutiny
|
||||
|
||||
- hosts: walker
|
||||
roles:
|
||||
|
|
30
ansible/roles/scrutiny/files/docker-compose.yml
Normal file
30
ansible/roles/scrutiny/files/docker-compose.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
version: "2.3"
|
||||
|
||||
services:
|
||||
web:
|
||||
image: linuxserver/scrutiny:latest
|
||||
ports:
|
||||
- "{{ wireguard.clients[ansible_fqdn].ip }}:7278:8080"
|
||||
volumes:
|
||||
- /dev/disk:/dev/disk
|
||||
- /run/udev:/run/udev:ro
|
||||
- /mnt/tank/app-data/scrutiny/:/config
|
||||
environment:
|
||||
- SCRUTINY_COLLECTOR=false
|
||||
- SCRUTINY_WEB=true
|
||||
- PUID={{ docker_user.id }}
|
||||
- PGID={{ docker_user.id }}
|
||||
restart: unless-stopped
|
||||
|
||||
collector:
|
||||
image: linuxserver/scrutiny:latest
|
||||
privileged: True
|
||||
volumes:
|
||||
- /dev/disk:/dev/disk
|
||||
- /run/udev:/run/udev:ro
|
||||
- /mnt/tank/app-data/scrutiny/:/config
|
||||
environment:
|
||||
- SCRUTINY_COLLECTOR=true
|
||||
- SCRUTINY_WEB=false
|
||||
- SCRUTINY_API_ENDPOINT=http://web:8080
|
||||
restart: unless-stopped
|
4
ansible/roles/scrutiny/handlers/main.yml
Normal file
4
ansible/roles/scrutiny/handlers/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- name: restart scrutiny
|
||||
shell:
|
||||
chdir: /opt/scrutiny
|
||||
cmd: "{{ docker_update_command }}"
|
17
ansible/roles/scrutiny/tasks/main.yml
Normal file
17
ansible/roles/scrutiny/tasks/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
- name: Create install directory
|
||||
file:
|
||||
path: /opt/scrutiny
|
||||
state: directory
|
||||
owner: "{{ docker_user.name }}"
|
||||
mode: "{{ docker_compose_directory_mask }}"
|
||||
become: true
|
||||
|
||||
- name: Install compose file
|
||||
template:
|
||||
src: files/docker-compose.yml
|
||||
dest: /opt/scrutiny/docker-compose.yml
|
||||
mode: "{{ docker_compose_file_mask }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
validate: /usr/bin/docker-compose -f %s config
|
||||
notify: restart scrutiny
|
||||
become: true
|
Loading…
Reference in a new issue