infra-ansible
ansible script to ship alpine/ssh/wireguard
git clone https://9o.is/git/infra-ansible.git
commit 442a1ab6e0163b1b1a88b84ae0dffeae56b75541 parent 9a2d6b00a4ae9c63d75fe6dfa2c8fdd58883b8a3 Author: Jul <jul@9o.is> Date: Fri, 17 May 2024 23:01:51 +0800 change nameservers variable to a list Diffstat:
| M | host/host_vars/server01.qh.is | | | 4 | +++- |
| M | host/roles/setup/tasks/networking.yml | | | 2 | +- |
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/host/host_vars/server01.qh.is b/host/host_vars/server01.qh.is @@ -2,8 +2,10 @@ 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 +static_nameservers: + - 93.95.224.28 + - 93.95.224.29 wg_server_ip: 10.0.0.1 wg_server_public_key: DcQpBGdChVTyLMR/UUfPNHa8sQz9J5I+3BSIJ7f3qhw= diff --git a/host/roles/setup/tasks/networking.yml b/host/roles/setup/tasks/networking.yml @@ -33,7 +33,7 @@ address {{ static_ip }} netmask {{ static_subnet }} gateway {{ static_gateway }} - dns-nameservers {{ static_nameservers }} + dns-nameservers {{ static_nameservers | join(' ') }} mtu {{ static_mtu }} notify: restart networking