aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2021-07-26 09:06:50 -0700
committerAlec Warner <antarus@gentoo.org>2021-07-26 09:06:50 -0700
commit2e5783005a7c8d854d5c154904a856574db72982 (patch)
tree5292f3cfc8c94d53ddd4f4922c1b2a5d0300d70a
downloadansible-2e5783005a7c8d854d5c154904a856574db72982.tar.gz
ansible-2e5783005a7c8d854d5c154904a856574db72982.tar.bz2
ansible-2e5783005a7c8d854d5c154904a856574db72982.zip
Start setting up ansible for infra
Signed-off-by: Alec Warner <antarus@gentoo.org>
-rw-r--r--ansible.cfg11
-rw-r--r--inventory/ansible.hosts43
-rw-r--r--inventory/ansible.json57
3 files changed, 111 insertions, 0 deletions
diff --git a/ansible.cfg b/ansible.cfg
new file mode 100644
index 0000000..cdf7c7a
--- /dev/null
+++ b/ansible.cfg
@@ -0,0 +1,11 @@
+[defaults]
+inventory = inventory/ansible.json;
+; Don't whine about the python interpreter
+interpreter_python = /usr/bin/python;
+; Don't wait for each host to finish.
+strategy = free
+; Run 10 hosts at once.
+forks = 10
+
+[colors]
+error = bright red
diff --git a/inventory/ansible.hosts b/inventory/ansible.hosts
new file mode 100644
index 0000000..7c803c7
--- /dev/null
+++ b/inventory/ansible.hosts
@@ -0,0 +1,43 @@
+[gentoo]
+albatross.gentoo.org
+auklet.gentoo.org
+avocet.gentoo.org
+bittern.gentoo.org
+bobolink.gentoo.org
+dipper.gentoo.org
+finch.gentoo.org
+gadwall.gentoo.org
+gallinule.gentoo.org
+gannet.gentoo.org
+geese.gentoo.org
+godwit.gentoo.org
+goldeneye.gentoo.org
+groundroller.gentoo.org
+inca.gentoo.org
+jacamar.gentoo.org
+kestrel.gentoo.org
+kookaburra.gentoo.org
+lapwing.gentoo.org
+manakin.gentoo.org
+martin.gentoo.org
+meadowlark.gentoo.org
+motmot.gentoo.org
+nighthawk.gentoo.org
+oriole.gentoo.org
+ovenbird.gentoo.org
+oystercatcher.gentoo.org
+pardalote.gentoo.org
+petrel.gentoo.org
+pigeon.gentoo.org
+pitta.gentoo.org
+starling.gentoo.org
+swan.gentoo.org
+thrasher.gentoo.org
+towhee.gentoo.org
+trogan.gentoo.org
+turkey.gentoo.org
+turnstone.gentoo.org
+tyrant.gentoo.org
+vanga.gentoo.org
+vireo.gentoo.org
+woodpecker.gentoo.org
diff --git a/inventory/ansible.json b/inventory/ansible.json
new file mode 100644
index 0000000..e516b53
--- /dev/null
+++ b/inventory/ansible.json
@@ -0,0 +1,57 @@
+{
+ "_meta": {
+ "hostvars": {}
+ },
+ "all": {
+ "children": [
+ "gentoo",
+ "ungrouped"
+ ]
+ },
+ "gentoo": {
+ "hosts": [
+ "albatross.gentoo.org",
+ "auklet.gentoo.org",
+ "avocet.gentoo.org",
+ "bittern.gentoo.org",
+ "bobolink.gentoo.org",
+ "dipper.gentoo.org",
+ "finch.gentoo.org",
+ "gadwall.gentoo.org",
+ "gallinule.gentoo.org",
+ "gannet.gentoo.org",
+ "geese.gentoo.org",
+ "godwit.gentoo.org",
+ "goldeneye.gentoo.org",
+ "groundroller.gentoo.org",
+ "inca.gentoo.org",
+ "jacamar.gentoo.org",
+ "kestrel.gentoo.org",
+ "kookaburra.gentoo.org",
+ "lapwing.gentoo.org",
+ "manakin.gentoo.org",
+ "martin.gentoo.org",
+ "meadowlark.gentoo.org",
+ "motmot.gentoo.org",
+ "nighthawk.gentoo.org",
+ "oriole.gentoo.org",
+ "ovenbird.gentoo.org",
+ "oystercatcher.gentoo.org",
+ "pardalote.gentoo.org",
+ "petrel.gentoo.org",
+ "pigeon.gentoo.org",
+ "pitta.gentoo.org",
+ "starling.gentoo.org",
+ "swan.gentoo.org",
+ "thrasher.gentoo.org",
+ "towhee.gentoo.org",
+ "trogan.gentoo.org",
+ "turkey.gentoo.org",
+ "turnstone.gentoo.org",
+ "tyrant.gentoo.org",
+ "vanga.gentoo.org",
+ "vireo.gentoo.org",
+ "woodpecker.gentoo.org"
+ ]
+ }
+}