Files
PTS-Team/menu/functions/ouroboros.yml
thesammykins b85d46105c Revert "Merge pull request #31 from Pandaura/dev"
This reverts commit 619678b60b, reversing
changes made to 9ec20a91e5.
2021-11-03 08:42:27 +11:00

67 lines
2.3 KiB
Bash

#!/bin/bash
# Title: ouroboros
# GNU: General Public License v3.0
################################################################################
---
- hosts: localhost
gather_facts: false
tasks:
# FACTS #######################################################################
- name: 'Ensure Monitors File Exists'
copy:
content: ''
dest: '/var/plexguide/pgupdater.output'
force: 'no'
group: '1000'
owner: '1000'
mode: '0755'
- name: 'Register Monitor List'
shell: 'cat /var/plexguide/pgupdater.output'
register: 'pgupdater'
- name: 'Set Known Facts'
set_fact:
pgrole: 'ouroboros'
- name: 'Setting {{pgrole}} Volumes'
set_fact:
pg_volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '/etc/localtime:/etc/localtime:ro'
- name: 'Setting {{pgrole}} ENV'
set_fact:
pg_env:
LATEST: 'false' #Some containers will break if set to latest, use tag already set by setting this to false
CLEANUP: 'true'
INTERVAL: '86400' #cEvery 24 hours in seconds
LOG_LEVEL: 'info'
SELF_UPDATE: 'true'
MONITOR: '{{pgupdater.stdout}}' #Can set to specific container only see wiki for details (https://github.com/pyouroboros/ouroboros/wiki/Usage#monitor)
IGNORE: 'mariadb influxdb mongo postgres plexautoscan'
LABELS_ONLY: 'false' #https://github.com/pyouroboros/ouroboros/wiki/Usage#label-enable
LABEL_ENABLE: 'false'
# DATA_EXPORT: 'influxdb'
# INFLUX_URL: 'influxdb'
# INFLUX_PORT: '8086'
# INFLUX_USERNAME: 'admin'
# INFLUX_PASSWORD: 'adminpass'
# INFLUX_DATABASE: 'ouroboros'
# INFLUX_SSL: 'false'
# INFLUX_VERIFY_SSL 'false'
NOTIFIERS: ''
# MAIN DEPLOYMENT #############################################################
- name: 'Deploying {{pgrole}}'
docker_container:
name: '{{pgrole}}'
image: 'pyouroboros/ouroboros'
pull: yes
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
networks:
- name: plexguide
aliases:
- 'ouroboros'
state: started