aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-09-08 18:40:48 +0200
committerbinary <me@rgoncalves.se>2020-09-08 18:40:48 +0200
commitd897257bf6401999751eb824499fc476cad8ad7f (patch)
tree938b61fbeaa6f642ecb34be94de1b0a98f7d18b7
parentb6df5bb201ff4ea3c1701e05c3f66e465079a6cb (diff)
downloadinfrastructure-d897257bf6401999751eb824499fc476cad8ad7f.tar.gz
Separated inventory in two distinct files
-rw-r--r--ansible.cfg2
-rw-r--r--inventory_vars.ini19
2 files changed, 20 insertions, 1 deletions
diff --git a/ansible.cfg b/ansible.cfg
index f350abf..480a2c2 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -1,5 +1,5 @@
[defaults]
-inventory = inventory.ini
+inventory = inventory.ini,inventory_vars.ini
interpreter_python = auto_silent
jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
diff --git a/inventory_vars.ini b/inventory_vars.ini
new file mode 100644
index 0000000..d5e173a
--- /dev/null
+++ b/inventory_vars.ini
@@ -0,0 +1,19 @@
+[servers:vars]
+package_curl="curl"
+package_neovim="neovim"
+package_tmux="tmux"
+package_wget="wget"
+package_zsh="zsh"
+
+[openbsd:vars]
+group_root="wheel"
+path_zsh_bin="/usr/local/bin/zsh"
+
+[centos:vars]
+group_root="root"
+path_zsh_bin="/bin/zsh"
+
+[debian:vars]
+group_root="root"
+path_zsh_bin="/bin/zsh"
+
remember that computers suck.