Merge branch 'master' of gitlab.com:shockrah/shell-scripts
This commit is contained in:
commit
a1633ede5e
23
docker-host/setup/tasks/fresh.yml
Normal file
23
docker-host/setup/tasks/fresh.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Setup a brand new system from the ground up.
|
||||||
|
---
|
||||||
|
- hosts: leftcoastlab
|
||||||
|
tasks:
|
||||||
|
- name: Import Global Vars
|
||||||
|
include_vars:
|
||||||
|
dir: ../vars
|
||||||
|
|
||||||
|
|
||||||
|
# System pre-reqs
|
||||||
|
- import_playbook: 'system-update.yml'
|
||||||
|
- import_playbook: 'install-docker.yml'
|
||||||
|
- import_playbook: 'dns.yml'
|
||||||
|
# Logging stack
|
||||||
|
- import_playbook: 'install-loki-logger.yml'
|
||||||
|
- import_playbook: 'grafana.yml'
|
||||||
|
# For host metrics
|
||||||
|
- import_playbook: 'vector.yml'
|
||||||
|
# Containerized services
|
||||||
|
- import_playbook: 'file-server.yml'
|
||||||
|
- import_playbook: 'git-stack.yml'
|
||||||
|
- import_playbook: 'subsonic.yml'
|
||||||
|
- import_playbook: 'nginx.yml'
|
12
docker-host/setup/tasks/install-loki-logger.yml
Normal file
12
docker-host/setup/tasks/install-loki-logger.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# This playbook installs the loki docker plugin which allows other docker based
|
||||||
|
# services to do they're regular logging actions but centralize them
|
||||||
|
---
|
||||||
|
- hosts: leftcoastlab
|
||||||
|
become: yes
|
||||||
|
tasks:
|
||||||
|
# --grant-all-permissions is the default for ansible
|
||||||
|
- name: Install Loki Docker Plugin
|
||||||
|
community.docker.docker_plugin:
|
||||||
|
plugin_name: grafana/loki-docker-driver:latest
|
||||||
|
state: enabled
|
||||||
|
alias: loki
|
@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
---
|
|
||||||
- hosts: leftcoastlab
|
|
||||||
tasks:
|
|
||||||
- name: Import Global Vars
|
|
||||||
include_vars:
|
|
||||||
dir: ../vars
|
|
||||||
|
|
||||||
|
|
||||||
- import_playbook: 'system-update.yml'
|
|
||||||
- import_playbook: 'install-docker.yml'
|
|
Loading…
Reference in New Issue
Block a user