From 2300426f0f4361f645556d82f510ef5c02e4c554 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 28 Dec 2020 16:23:12 +0000 Subject: [PATCH] Move default variables into role defaults rather than group vars --- ansible/group_vars/all/directories.yml | 1 - ansible/{group_vars/all/ssh.yml => roles/base/defaults/main.yml} | 0 ansible/roles/traefik/defaults/main.yml | 1 + 3 files changed, 1 insertion(+), 1 deletion(-) rename ansible/{group_vars/all/ssh.yml => roles/base/defaults/main.yml} (100%) diff --git a/ansible/group_vars/all/directories.yml b/ansible/group_vars/all/directories.yml index 558e4e5..d477665 100644 --- a/ansible/group_vars/all/directories.yml +++ b/ansible/group_vars/all/directories.yml @@ -1,2 +1 @@ -traefik_influx_db_dir: ./influxdb app_data_dir: /mnt/tank/app-data diff --git a/ansible/group_vars/all/ssh.yml b/ansible/roles/base/defaults/main.yml similarity index 100% rename from ansible/group_vars/all/ssh.yml rename to ansible/roles/base/defaults/main.yml diff --git a/ansible/roles/traefik/defaults/main.yml b/ansible/roles/traefik/defaults/main.yml index b1b8ce9..263cfa3 100644 --- a/ansible/roles/traefik/defaults/main.yml +++ b/ansible/roles/traefik/defaults/main.yml @@ -1 +1,2 @@ traefik_private_ip: "{{ wireguard.clients[ansible_fqdn].ip }}" +traefik_influx_db_dir: ./influxdb