infra-ansible

ansible script to ship alpine/ssh/wireguard

git clone https://9o.is/git/infra-ansible.git

commit edfd90ca32e61e1aa44a6b702649a664ffa71e5b
parent 68af35b74213ef075ccebd1497f66d353e117c99
Author: Jul <jul@9o.is>
Date:   Wed, 15 May 2024 00:21:25 +0800

move host variables to host_vars directory

Diffstat:
Mhost/ansible.cfg | 2+-
Ahost/host_vars/server01.qh.is | 18++++++++++++++++++
Ahost/inventory.ini | 2++
Dhost/inventory.yml | 22----------------------
4 files changed, 21 insertions(+), 23 deletions(-)

diff --git a/host/ansible.cfg b/host/ansible.cfg @@ -1,5 +1,5 @@ [defaults] -inventory = inventory.yml +inventory = inventory.ini vault_password_file = contrib/vault-password.sh [diff] diff --git a/host/host_vars/server01.qh.is b/host/host_vars/server01.qh.is @@ -0,0 +1,18 @@ +static_interface: ens3 +static_ip: 89.147.110.9 +static_subnet: 255.255.255.0 +static_gateway: 89.147.110.1 +static_nameservers: 93.95.224.28 93.95.224.29 +static_mtu: 576 + +wg_server_ip: 10.0.0.1 +wg_server_public_key: DcQpBGdChVTyLMR/UUfPNHa8sQz9J5I+3BSIJ7f3qhw= +wg_server_private_key: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 31626538636263303764343161633635636439323630336631336230366430323562633530393934 + 6435336263616664383930656362633365613463373965620a663833313234643762626130376662 + 65663965303864363162306265373437346337643734353363656130613435303236663834376533 + 3132326665323861620a356439353663383237383630366461303233343062626564623231323134 + 36303534316462316537356166363462613434393631373332313931393362646634336362656638 + 3465306231393835613662643230346637643639383938633435 + diff --git a/host/inventory.ini b/host/inventory.ini @@ -0,0 +1,2 @@ +[servers] +server01.9o.is diff --git a/host/inventory.yml b/host/inventory.yml @@ -1,22 +0,0 @@ ---- - -servers: - hosts: - server01.9o.is: - static_interface: ens3 - static_ip: 89.147.110.9 - static_subnet: 255.255.255.0 - static_gateway: 89.147.110.1 - static_nameservers: 93.95.224.28 93.95.224.29 - static_mtu: 576 - wg_server_ip: 10.0.0.1 - wg_server_public_key: DcQpBGdChVTyLMR/UUfPNHa8sQz9J5I+3BSIJ7f3qhw= - wg_server_private_key: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 31626538636263303764343161633635636439323630336631336230366430323562633530393934 - 6435336263616664383930656362633365613463373965620a663833313234643762626130376662 - 65663965303864363162306265373437346337643734353363656130613435303236663834376533 - 3132326665323861620a356439353663383237383630366461303233343062626564623231323134 - 36303534316462316537356166363462613434393631373332313931393362646634336362656638 - 3465306231393835613662643230346637643639383938633435 -