summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-09-13 22:19:37 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-09-13 22:19:37 +0200
commitc9e2888390e16ca644a667da0b8d442938f16a0e (patch)
tree82498b73b37e8494ad4245ec5909099829c08f70 /inventory
parentadd aptly repo (diff)
add constructed inventory
Diffstat (limited to 'inventory')
-rw-r--r--inventory/constructed.yml4
-rw-r--r--inventory/hosts.ini1
2 files changed, 4 insertions, 1 deletions
diff --git a/inventory/constructed.yml b/inventory/constructed.yml
new file mode 100644
index 00000000..2a7a0fe1
--- /dev/null
+++ b/inventory/constructed.yml
@@ -0,0 +1,4 @@
+plugin: constructed
+strict: True
+compose:
+ host_name: "host_name | default(inventory_hostname)"
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index c26678b9..41a9b0b2 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -1,5 +1,4 @@
[all:vars]
-host_name={{ inventory_hostname }}
ansible_user=root
ansible_port=222
ansible_python_interpreter=/usr/bin/python3