From f67e6cb8628c33d46137e4169f5e4429d0982633 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Tue, 4 Jul 2023 09:11:47 -0400 Subject: [PATCH] would be nice to store the inventory configuration --- .gitignore | 1 - inventory/bxxa.yml | 36 ++++++++++++++++++++++++++++++++++++ inventory/hosts.yml | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 inventory/bxxa.yml create mode 100644 inventory/hosts.yml diff --git a/.gitignore b/.gitignore index bd8a149..6dbccb1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -inventory/ data/ diff --git a/inventory/bxxa.yml b/inventory/bxxa.yml new file mode 100644 index 0000000..267c3ab --- /dev/null +++ b/inventory/bxxa.yml @@ -0,0 +1,36 @@ +--- +lxd: + hosts: + lxd_host: + ansible_user: ansible + ansible_host: bxxa.cc + ansible_port: 22 + host_iface: eth0 + +containers: + vars: + ansible_user: root + ansible_host: bxxa.cc + ansible_python_interpreter: /usr/bin/python3 + hosts: + haproxy: + internal_ip: 10.37.200.99 + ansible_port: 2223 + domain_name: bxxa.cc + install_certbot: true + + homepage: + internal_ip: 10.37.200.106 + ansible_port: 2231 + + file-host: + internal_ip: 10.37.200.105 + ansible_port: 2230 + + gallery: + internal_ip: 10.37.200.103 + ansible_port: 2228 + + gitea: + internal_ip: 10.37.200.104 + ansible_port: 2229 diff --git a/inventory/hosts.yml b/inventory/hosts.yml new file mode 100644 index 0000000..974f1a7 --- /dev/null +++ b/inventory/hosts.yml @@ -0,0 +1,18 @@ +--- +lxd: + hosts: + lxd_host: + ansible_user: bort + ansible_host: 192.168.11.125 + ansible_port: 22 + +containers: + vars: + ansible_user: bort + ansible_host: 192.168.11.125 + ansible_port: 2229 + ansible_python_interpreter: /usr/bin/python3 + hosts: + file-host: + internal_ip: 10.98.46.122 +