From 97f201deb22f11acc22dda5368c365701b5caa5f Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 19 Nov 2020 14:12:45 +0100 Subject: Refactor hosts with more vars --- group_vars/all.yml | 8 ++++++++ group_vars/alpine.yml | 1 + group_vars/debian.yml | 1 + group_vars/freebsd.yml | 2 ++ group_vars/openbsd.yml | 2 ++ host_vars/dcontroller.yml | 2 +- host_vars/emb0.yml | 2 +- host_vars/stack0.yml | 2 +- 8 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 group_vars/all.yml diff --git a/group_vars/all.yml b/group_vars/all.yml new file mode 100644 index 0000000..a76a28b --- /dev/null +++ b/group_vars/all.yml @@ -0,0 +1,8 @@ + +# all ~~ group_vars/all.yml +# all machines + +--- + +user_root: "root" + diff --git a/group_vars/alpine.yml b/group_vars/alpine.yml index 8e529c0..dc39690 100644 --- a/group_vars/alpine.yml +++ b/group_vars/alpine.yml @@ -13,6 +13,7 @@ group_root: "root" path_zsh: "/usr/bin/zsh" path_zshconfig: "/etc/zsh/zshrc" path_tmuxconfig: "/etc/tmux.conf" +path_gitshell: "/usr/bin/git-shell" os_type: "linux" os_distribution: "alpine" diff --git a/group_vars/debian.yml b/group_vars/debian.yml index f8bcf20..01aa2f0 100644 --- a/group_vars/debian.yml +++ b/group_vars/debian.yml @@ -13,6 +13,7 @@ group_root: "root" path_zsh: "/usr/bin/zsh" path_zshconfig: "/etc/zsh/zshrc" path_tmuxconfig: "/etc/tmux.conf" +path_gitshell: "/usr/bin/git-shell" os_type: "linux" os_distribution: "debian" diff --git a/group_vars/freebsd.yml b/group_vars/freebsd.yml index fc86360..5ea470e 100644 --- a/group_vars/freebsd.yml +++ b/group_vars/freebsd.yml @@ -13,6 +13,8 @@ group_root: "wheel" path_zsh: "/usr/local/bin/zsh" path_zshconfig: "/usr/local/etc/zshrc" path_tmuxconfig: "/usr/local/etc/tmux.conf" +path_doasconfig: "/usr/local/etc/doas.conf" +path_gitshell: "/usr/local/bin/git-shell" os_type: "bsd" os_distribution: "freebsd" diff --git a/group_vars/openbsd.yml b/group_vars/openbsd.yml index 520160b..65089eb 100644 --- a/group_vars/openbsd.yml +++ b/group_vars/openbsd.yml @@ -13,6 +13,8 @@ group_root: "wheel" path_zsh: "/usr/local/bin/zsh" path_zshconfig: "/etc/zshrc" path_tmuxconfig: "/etc/tmux.conf" +path_doasconfig: "/etc/doas.conf" +path_gitshell: "/usr/local/bin/git-shell" os_type: "bsd" os_distribution: "openbsd" diff --git a/host_vars/dcontroller.yml b/host_vars/dcontroller.yml index b891cc2..8f537c0 100644 --- a/host_vars/dcontroller.yml +++ b/host_vars/dcontroller.yml @@ -1,4 +1,4 @@ -hostname: dcontroller +ansible_host: dcontroller virtual: true ip: diff --git a/host_vars/emb0.yml b/host_vars/emb0.yml index d135429..51388f5 100644 --- a/host_vars/emb0.yml +++ b/host_vars/emb0.yml @@ -1,4 +1,4 @@ -hostname: emb0 +ansible_host: emb0 virtual: false ip: diff --git a/host_vars/stack0.yml b/host_vars/stack0.yml index 051908b..9c27f26 100644 --- a/host_vars/stack0.yml +++ b/host_vars/stack0.yml @@ -1,4 +1,4 @@ -hostname: stack0 +ansible_host: stack0 ip: in: 10.10.0.40 out: 192.168.5.40 -- cgit v1.2.3