aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-04 11:52:49 +0100
committerbinary <me@rgoncalves.se>2021-03-04 11:52:49 +0100
commit6092595eeda3fce5069186cb2c1d8919ea6ec645 (patch)
treec64d489d212a2dde6651990adbda9f4b25f5ebb8
parentdde73d89a725ad764509aa623c945cfa789ae2e4 (diff)
downloadinfrastructure-6092595eeda3fce5069186cb2c1d8919ea6ec645.tar.gz
Cleanup inventory name
-rw-r--r--ansible.cfg5
-rw-r--r--inventory.ini44
-rwxr-xr-xinventory.py (renamed from dynamic.py)0
3 files changed, 4 insertions, 45 deletions
diff --git a/ansible.cfg b/ansible.cfg
index 9e665ed..1541c14 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -1,6 +1,6 @@
[defaults]
-inventory = dynamic.py
+inventory = inventory.py
interpreter_python = auto_silent
jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
@@ -18,3 +18,6 @@ command_warnings=False
[ssh_connection]
pipelining = True
scp_if_ssh=True
+
+[inventory]
+enable_plugins = constructed
diff --git a/inventory.ini b/inventory.ini
deleted file mode 100644
index 26eeaee..0000000
--- a/inventory.ini
+++ /dev/null
@@ -1,44 +0,0 @@
-
-# inventory.ini
-#
-# ---
-
-# os distribution
-
-[openbsd]
-dc0
-st0dev0
-st0cld0
-st0gme0
-st0sbx0
-
-[freebsd]
-stack0
-
-[debian]
-emb0
-
-[alpine]
-st0gme1
-st0sbx1
-
-[linux:children]
-alpine
-debian
-
-[bsd:children]
-freebsd
-openbsd
-
-[client]
-ws-bentonite
-ws-think01
-ws-xps01
-guest0
-guest1
-guest2
-
-# all hosts
-[servers:children]
-bsd
-linux
diff --git a/dynamic.py b/inventory.py
index 5354474..5354474 100755
--- a/dynamic.py
+++ b/inventory.py
remember that computers suck.