]> git.phdru.name Git - ansible.git/commitdiff
Replace real inventory by a template
authorOleg Broytman <phd@phdru.name>
Fri, 28 Feb 2020 18:10:59 +0000 (21:10 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 28 Feb 2020 18:10:59 +0000 (21:10 +0300)
hosts [deleted file]
hosts.template [new file with mode: 0644]
vbox-inventory [deleted file]

diff --git a/hosts b/hosts
deleted file mode 100644 (file)
index 332312f..0000000
--- a/hosts
+++ /dev/null
@@ -1,13 +0,0 @@
-localhost ansible_connection=local
-
-[localnet]
-localhost
-iskra-aviel.phdru.name
-
-[servers]
-iskra-aviel.phdru.name
-oper.med.ru
-phdru.name debian_mirror=http://debian.mirror.cambrium.nl/debian
-
-[all:vars]
-debian_mirror=http://mirror.yandex.ru/debian
diff --git a/hosts.template b/hosts.template
new file mode 100644 (file)
index 0000000..1d5d3f6
--- /dev/null
@@ -0,0 +1,9 @@
+localhost ansible_connection=local
+
+[localnet]
+localhost
+home.phdru.name
+
+[servers]
+home.phdru.name
+phdru.name
diff --git a/vbox-inventory b/vbox-inventory
deleted file mode 100644 (file)
index decbb80..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-vbox-d9 ansible_host=localhost ansible_port=2022  debian_mirror=http://mirror.yandex.ru/debian
-vbox-d10 ansible_host=localhost ansible_port=2022 debian_mirror=https://mirror.yandex.ru/debian
-vbox-f30-64 ansible_host=localhost ansible_port=2022