From 63c7d0f74dedbd5e6c88fb1453b913b35611fb32 Mon Sep 17 00:00:00 2001 From: binary Date: Sat, 5 Sep 2020 12:47:53 +0200 Subject: refactored var files --- group_vars/all/default.ini | 28 +++++++++++++++++++++++ group_vars/all/default.yml | 55 ---------------------------------------------- group_vars/all/groups.ini | 19 ++++++++++++++++ 3 files changed, 47 insertions(+), 55 deletions(-) create mode 100644 group_vars/all/default.ini delete mode 100644 group_vars/all/default.yml create mode 100644 group_vars/all/groups.ini diff --git a/group_vars/all/default.ini b/group_vars/all/default.ini new file mode 100644 index 0000000..5f4cd2c --- /dev/null +++ b/group_vars/all/default.ini @@ -0,0 +1,28 @@ +# SYSTEMD VARIABLES +g_systemd_unit_directory: /etc/systemd/system/ + +# PORT VARIABLES +g_port_ssh: 22 +g_port_http: 80 +g_port_https: 443 + +g_port_gitweb_gui: 16010 +g_port_mkdocs_gui: 16020 +g_port_syncthing_gui: 16030 +g_port_grafana_gui: 16090 +g_port_wireguard: 51100 +g_port_grafana: 51200 + +# IP VARIABLES +g_ip_mkdocs_gui: 0.0.0.0 + +# LOGGING VARIABLES +g_logging_directory: /var/REPLACEME + +# PACKAGES +package_curl: "curl" +package_neovim: "neovim" +package_tmux: "tmux" +package_wget: "wget" +package_zsh: "zsh" + diff --git a/group_vars/all/default.yml b/group_vars/all/default.yml deleted file mode 100644 index 7b70a72..0000000 --- a/group_vars/all/default.yml +++ /dev/null @@ -1,55 +0,0 @@ - -# =========================================================================== # -# _ ______ ___________ -# | | / / __ `/ ___/ ___/ -# | |/ / /_/ / / (__ ) -# |___/\__,_/_/ /____(_) -# -# =========================================================================== # - -- hosts: all - vars: - - # SYSTEMD VARIABLES - g_systemd_unit_directory: /etc/systemd/system/ - - # PORT VARIABLES - g_port_ssh: 22 - g_port_http: 80 - g_port_https: 443 - - g_port_gitweb_gui: 16010 - g_port_mkdocs_gui: 16020 - g_port_syncthing_gui: 16030 - g_port_grafana_gui: 16090 - g_port_wireguard: 51100 - g_port_grafana: 51200 - - # IP VARIABLES - g_ip_mkdocs_gui: 0.0.0.0 - - # LOGGING VARIABLES - g_logging_directory: /var/REPLACEME - - # PACKAGES - package_curl: "curl" - package_neovim: "neovim" - package_tmux: "tmux" - package_wget: "wget" - package_zsh: "zsh" - -- hosts: openbsd - vars: - group_root: "wheel" - path_zsh_bin: "/usr/local/bin/zsh" - -- hosts: centos - vars: - group_root: "root" - path_zsh_bin: "/bin/zsh" - -- hosts: debian - vars: - group_root: "root" - path_zsh_bin: "/bin/zsh" - diff --git a/group_vars/all/groups.ini b/group_vars/all/groups.ini new file mode 100644 index 0000000..d5e173a --- /dev/null +++ b/group_vars/all/groups.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" + -- cgit v1.2.3