diff --git a/docker-host/setup/tasks/fresh.yml b/docker-host/setup/tasks/fresh.yml new file mode 100644 index 0000000..99e0138 --- /dev/null +++ b/docker-host/setup/tasks/fresh.yml @@ -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' diff --git a/docker-host/setup/tasks/install-loki-logger.yml b/docker-host/setup/tasks/install-loki-logger.yml new file mode 100644 index 0000000..b66df14 --- /dev/null +++ b/docker-host/setup/tasks/install-loki-logger.yml @@ -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 \ No newline at end of file diff --git a/docker-host/setup/tasks/main.yml b/docker-host/setup/tasks/main.yml deleted file mode 100644 index ab15c3c..0000000 --- a/docker-host/setup/tasks/main.yml +++ /dev/null @@ -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'