diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-09-13 22:19:37 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-09-13 22:19:37 +0200 |
commit | c9e2888390e16ca644a667da0b8d442938f16a0e (patch) | |
tree | 82498b73b37e8494ad4245ec5909099829c08f70 /inventory | |
parent | add aptly repo (diff) |
add constructed inventory
Diffstat (limited to 'inventory')
-rw-r--r-- | inventory/constructed.yml | 4 | ||||
-rw-r--r-- | inventory/hosts.ini | 1 |
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 |